Re: Different results for request() vs putrequest()

2009-09-11 Thread John Gordon
In John Gordon writes: > According to the documentation, these two sections of code should be > equivalent: > conn = httplib.HTTPSConnection(host) > conn.putrequest("POST", url) > conn.putheader("Proxy-Authorization", myProxy) > conn.putheader("Content-Length", "%d" % len(body)) > con

Different results for request() vs putrequest()

2009-09-03 Thread John Gordon
According to the documentation, these two sections of code should be equivalent: conn = httplib.HTTPSConnection(host) conn.putrequest("POST", url) conn.putheader("Proxy-Authorization", myProxy) conn.putheader("Content-Length", "%d" % len(body)) conn.endheaders() conn.send(body) vs