I want to make a PUT request.<div>I need some headers of my own ( certificates etc ) and I need to mandatorily use a proxy.</div><div>Also the url is of the form <a href="http://www.xyz.com/abc">http://www.xyz.com/abc</a> and I don't have permission to put data</div>
<div>on <a href="http://www.xyz.com">http://www.xyz.com</a> while I do have permission to put data on <a href="http://www.xyz.com/abc">http://www.xyz.com/abc</a></div><div><br></div><div>I tried httplib, httplib2, urllib2 with no avail.</div>
<div>I managed to do this via command line curl:</div><div><br></div><div>$ curl http:/<a href="http://xyz.com/testing/shashwat/test.txt">xyz.com/testing/shashwat/test.txt</a> -T test.txt -H "sw-version: 1.0" -H "CA-Cert-Auth:v=1;a=yxyz.prod;h=10.10.0.1;t=1316594650;s=.AeEYJMMfElN74fnWD3GlXJ4J.1KiQFg--" --proxy <a href="http://proxy.xyz.com:3128">proxy.xyz.com:3128</a> -H "Content-Type:text/plain"</div>
<div><br></div><div>Is there a way to do it in python apart from using command line curl in python.</div><div>The machine is RHEL4 and is giving hard time installing pycurl.</div><div><br></div>