分类: 系统运维
2010-03-08 15:06:35
当有有状态化时,IGD会发送GENA包给订阅此服务的所有control point,包格式如下所示:
.NOTIFY /notify HTTP/1.1..HOST:192.168.1.64:2869..
CONTENT-TYPE text/xml..
CONTENT-LENGTH: 162.
.NT: upnp:event.
.NTS: upnp:propchange..
SID: uuid:b0441e
.
..
POST包是Control point用于控制IGD的命令.包格式如下:
POST /upnp/control/WANCommonIFC1 HTTP/1.1.
.Content-Type: text/xml; charset="utf-8".
.SOAPAction: "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1#X_GetICSStatistics"
User-Agent: Mozilla/4.0 (compatible; UPnP/1.0; Windows 9x)..
Host: 192.168.1.1:2869..
Content-Length: 310..
Connection: Keep-Alive..
Cache-Control: no-cache..Pragma: no-cache..
..
/>
..
SUBSCRIBE包是CONTROL POINT 订阅IGD服务而发送的订阅包.包格式如下:
SUBSCRIBE /upnp/event/WANIPConn1 HTTP/1.1.
NT: upnp:event.
Callback: <
Timeout: Second-1800..
User-Agent: Mozilla/4.0 (compatible; UPnP/1.0; Windows 9x)
.Host: 192.168.1.1:2869..Content-Length: 0..
Connection: Keep-Alive..Cache-Control: no-cache..Pragma: no-cache..