PUT with proxy-support
t at jollybox.de
Thu Aug 25 13:18:49 CEST 2011
On 25/08/11 13:07, Shashwat Anand wrote:
> I want to make a PUT request.
> I need some headers of my own ( certificates etc ) and I need to
> mandatorily use a proxy.
> Also the url is of the form http://www.xyz.com/abc and I don't have
> permission to put data
> on http://www.xyz.com while I do have permission to put data
> on http://www.xyz.com/abc
> I tried httplib, httplib2, urllib2 with no avail.
What did you try? What problems did you run into?
I'm sure there is a way in Python, and chances are you were already
close to finding it -- show us what you tried, what actually happened,
including any error messages in full, and what you wanted to happen.
> I managed to do this via command line curl:
> $ curl http:/xyz.com/testing/shashwat/test.txt
> <http://xyz.com/testing/shashwat/test.txt> -T test.txt -H "sw-version:
> 1.0" -H
> --proxy proxy.xyz.com:3128 <http://proxy.xyz.com:3128> -H
> Is there a way to do it in python apart from using command line curl in
> The machine is RHEL4 and is giving hard time installing pycurl.
More information about the Python-list