<html><head></head><body bgcolor="#FFFFFF"><div>Check out the python Requests module: <a href="http://docs.python-requests.org/en/latest/index.html">http://docs.python-requests.org/en/latest/index.html</a><br><br>Sent from my iPhone</div><div><br>On Aug 25, 2011, at 7:07, Shashwat Anand <<a href="mailto:anand.shashwat@gmail.com">anand.shashwat@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>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"><a href="http://www.xyz.com/abc">http://www.xyz.com/abc</a></a> and I don't have permission to put data</div>
<div>on <a href="http://www.xyz.com"><a href="http://www.xyz.com">http://www.xyz.com</a></a> while I do have permission to put data on <a href="http://www.xyz.com/abc"><a href="http://www.xyz.com/abc">http://www.xyz.com/abc</a></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"><a href="http://xyz.com/testing/shashwat/test.txt">xyz.com/testing/shashwat/test.txt</a></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>
</div></blockquote><blockquote type="cite"><div><span>-- </span><br><span><a href="http://mail.python.org/mailman/listinfo/python-list">http://mail.python.org/mailman/listinfo/python-list</a></span><br></div></blockquote></body></html>