title: how to open facebook/gmail/authencation sites using python urllib2.urlopen?
body: <p>I am trying to write a small web-based proxy using python, I can fetch and show normal websites, but I can not login to facebook/gmail/...anything with login .
  I have seen some examples of authentication here
  <a href="http://docs.python.org/release/2.5.2/lib/urllib2-examples.html" rel="nofollow">http://docs.python.org/release/2.5.2/lib/urllib2-examples.html</a> but I don't know how I can make a general solution for all web sites with login , any idea?</p>
  
  <p>my code is :</p>
  
  <pre><code>def showurl():
      url=request.vars.url
      response = urllib2.urlopen(url)
      html = response.read()
      return html
  </code></pre>