朔最新版

654a43b3 :Anonymous 2005-10-18 23:33
LocationをLOCATIONにしたらsaxがパースエラーするようになっちゃった。

HTTP/1.1 200 OK
Server: Unknown/0.0 UPnP/1.0 Web Server
EXT:
LOCATION: http://192.168.1.1:80/InternetGatewayDevice.xml

Traceback (most recent call last):
File "portctrl.py", line 231, in ?
main()
File "portctrl.py", line 221, in main
router = findrouter(timeout=20)
File "upnptest\upnp.py", line 274, in findrouter
return Router(devicexml, contype, timeout=timeout)
File "upnptest\upnp.py", line 133, in __init__
self.readdevice()
File "upnptest\upnp.py", line 149, in readdevice
xml.sax.parse(xmlobject, handler)
File "lib\xml\sax\__init__.py", line 33, in parse
parser.parse(source)
File "lib\xml\sax\expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "lib\xml\sax\xmlreader.py", line 125, in parse
self.close()
File "lib\xml\sax\expatreader.py", line 217, in close
self.feed("", isFinal = 1)
File "lib\xml\sax\expatreader.py", line 211, in feed
self._err_handler.fatalError(exc)
File "lib\xml\sax\handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: <unknown>:1:0: no element found
Powered by shinGETsu.