I am trying to build a HTTP request that looks like: http://localhost/common/foxisapi.dll/tmsmail.x2.isapi?<PROCESS%20sync=''%20schema=''%20class='replicateApplication.getChanges'%20/> Works in a browser.
lxml.parse() gives me: failed to load external entity urllib2.urlopen() gives me: Bad request So I am trying httplib I have encoded the GET request with urllib.quote () and now I am attempting to use HTTPConnection >>> conn = httplib.HTTPConnection("localhost") >>> print x %3CPROCESS%20sync%3D%27%27%20schema%3D%27%27%20class%3D %27replicateApplication.getChanges%27%20/%3E >>> this = conn.putrequest("GET",x) >>> conn.endheaders() >>> r = conn.getresponse() >>> print r.read() <html><head><title>Error</title></head><body>The parameter is incorrect. </body></html> Any help would be appreciated. -- http://mail.python.org/mailman/listinfo/python-list