As I pasted the function, i get this error message. It doesn't actually send a POST command but an OPTION command.
Request URL:
http://192.168.0.100:8888/upnp/control/CIS
Request Method: OPTIONS
Status Code: HTTP/1.1 405 Method Not Allowed
Request Headers
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0Pragma:no-cacheOrigin:nullHost:192.168.0.100:8888Connection:keep-aliveCache-Control:no-cacheAccess-Control-Request-Method:POSTAccess-Control-Request-Headers:content-type,soapactionAccept-Language:en-US,en;q=0.5Accept-Encoding:gzip, deflateAccept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Response Headers
X-AV-Server-Info:av=5.0; hn="";
cn="Sony Corporation";
mn="STR-DA5500ES";
mv="1.0";
Server:Trimedia pSOS+/NDK4.3 UPnP/1.0 MediabolicUPnP/-20110626.103844Content-Type:text/html;
charset=utf-8Connection:close
If I comment out the SetRequestHeader commands, it gives me a different error but actually sends a post command. It just doesn't have the headers that the working post command from the uPnP tool does.
http://192.168.0.100:8888/upnp/control/CIS
Request Method: POST
Status Code: HTTP/1.1 400 Bad Request
Request Headers
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64;rv:18.0) Gecko/20100101 Firefox/18.0Pragma:no-cacheOrigin:nullHost:192.168.0.100:8888Content-Type:text/plain; charset=UTF-8Content-Length:303Connection:keep-aliveCache-Control:no-cacheAccept-Language:en-US,en;q=0.5Accept-Encoding:gzip, deflateAccept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Response Headers
X-AV-Server-Info:av=5.0; hn="";
cn="Sony Corporation";
mn="STR-DA5500ES";
mv="1.0";Server:Trimedia pSOS+/NDK4.3 UPnP/1.0 MediabolicUPnP/-20110626.103844Content-Type:text/html;
charset=utf-8Connection:close
My best guess is there is something wrong with the objXMLHttpRequest.setRequestHeader commands.
Thanks so much for taking a look.
Dennis