title: Problem with programmatic login using httplib2
body: <p>Im using httplib2 library in python to do a programmatic login to a website. Below is my code:</p>
  
  <pre><code>import urllib,httplib2
  url='http://somesite.com'
  header_data={'Content-type': 'application/x-www-form-urlencoded',
      'User-Agent':'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10'
  }
  body={'username':'&lt;username&gt;','password':'&lt;password&gt;','Submit':'Sign in'}
  http = httplib2.Http()
  try:
      response,content = http.request(url,'POST',headers=header_data,body=urllib.urlencode(body)) 
  except:
      print False
  print response
  print content
  </code></pre>
  
  <p>I get the dictionary in response, but the content variable is empty. It should have the html of the page,isnt it ?.</p>
  
  <p>Any to fix this?
  Please Help
  Thank You.</p>