<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <br>
    <blockquote
cite="mid:CAFFfdL+9tHAFAnN4vNZf00Z6Epfwr5q7w0T-z0qFMPoQdn_E2w@mail.gmail.com"
      type="cite">
      <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 <a class="moz-txt-link-freetext" href="http:/">http:/</a><a moz-do-not-send="true"
          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 moz-do-not-send="true"
          href="http://proxy.xyz.com:3128">proxy.xyz.com:3128</a> -H
        "Content-Type:text/plain"</div>
    </blockquote>
    If you can do it with command line curl then probably you can do it
    with pycurl.<br>
    <br>
    <a class="moz-txt-link-freetext" href="http://pycurl.sourceforge.net/">http://pycurl.sourceforge.net/</a><br>
    <br>
    Best,<br>
    <br>
       Laszlo<br>
    <br>
  </body>
</html>