Subject: | Net-UPnP CPAN distribution : Some UPnP devices aparrently incompatible with fetching DATA using HTTP/1.0 |
Date: | Tue, 17 Sep 2013 19:03:43 -0400 |
To: | bug-Net-UPnP [...] rt.cpan.org |
From: | Jonathan Luckey <jdluckey [...] gmail.com> |
My Linksys Series Router E900 access point didn't work with Net::UPnP.
SSDP finds the device, but fetching the description from the HTTP
server returned zero bytes of data. This prevented discovery from
working.
This turns out to be caused by the E900 closing the TCP connection
immediately after the GET is posted via Net::UPnP::HTML. Ultimately
failure was found to be connected to the HTTP protocol version
specified in the GET. 1.0 instead of 1.1
Changing line 66 in Net/UPnP/HTML.pm from
$method $path HTTP/1.0
to
$method $path HTTP/1.1
allowed my intended application (igdctl.pl) to work