Great, thank you very much.
On May 13, 1:38 pm, Tim Harig wrote:
> On 2009-05-13, Tim Harig wrote:
>
> > host = "http://localhost";
> > request = r"""/common/foxisapi.dll/tmsmail.x2.isapi? > schema='' class='replicateApplication.getChanges' /"""
> > url = host + urllib.quote(request)
> > content
On 2009-05-13, Tim Harig wrote:
> host = "http://localhost";
> request = r"""/common/foxisapi.dll/tmsmail.x2.isapi? schema='' class='replicateApplication.getChanges' /"""
> url = host + urllib.quote(request)
> content = urllib.urlopen(url).read()
Which accidentally encodes the '?' separator. Thi
On 2009-05-13, Tim Harig wrote:
> import urllib
> url =
> "http://localhost/common/foxisapi.dll/tmsmail.x2.isapi? content = urllib.urlopen(url).read()
forgot to urlencode:
host = "http://localhost";
request = r"""/common/foxisapi.dll/tmsmail.x2.isapi?http://mail.python.org/mailman/listinfo/pyth
On 2009-05-13, Paul Hemans wrote:
> http://localhost/common/foxisapi.dll/tmsmail.x2.isapi?
Note the entire URL.
> So I am trying httplib I have encoded the GET request with urllib.quote
urllib would be much easier if you don't need low level control -- it will
automatically call httplib for you.
> I am trying to build a HTTP request that looks like:
> http://localhost/common/foxisapi.dll/tmsmail.x2.isapi
> ?
> Works in a browser.
>
> and now I am attempting to use HTTPConnection
> >>> conn = httplib.HTTPConnection("localhost")
> >>> print x
> %3CPROCESS%20sync%3D%27%27%20schema%3D%27%27%20
On Tue, May 12, 2009 at 7:20 PM, Paul Hemans wrote:
> I am trying to build a HTTP request that looks like:
> http://localhost/common/foxisapi.dll/tmsmail.x2.isapi?
> Works in a browser.
I'm not 100% sure, but I don't think you can have < or > in a URL.
Your browser might be implicitly encoding th
I am trying to build a HTTP request that looks like:
http://localhost/common/foxisapi.dll/tmsmail.x2.isapi?
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
()