Help with a HTTP GET request

Paul Hemans p_hemans at
Tue May 12 22:20:21 EDT 2009

I am trying to build a HTTP request that looks like:
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
>>> this = conn.putrequest("GET",x)
>>> conn.endheaders()
>>> r = conn.getresponse()
>>> print
<html><head><title>Error</title></head><body>The parameter is

Any help would be appreciated.

More information about the Python-list mailing list