About Proxy

2005-04-07
2013-05-21
  • Raffaele Castagno

    How is expected to work the http proxy? I've looked around for help, but didn't found nothing about what I must do to get libgmail working behind a proxy. Can anyone help me?

     
    • Anonymous - 2005-04-07

      I found the below excerpt at "http://docs.python.org/lib/module-urllib.html"

      " In a Unix or Windows environment, set the http_proxy, ftp_proxy or gopher_proxy environment variables to a URL that identifies the proxy server before starting the Python interpreter. For example (the "%" is the command prompt):

      % http_proxy="http://www.someproxy.com:3128"
      % export http_proxy

      In a Windows environment, if no proxy environment variables are set, proxy settings are obtained from the registry's Internet Settings section."

      Hope this helps.

       
      • Norm Petterson

        Norm Petterson - 2006-05-03

        I am using the fairly-recent urllib2 "ConnectProxy" opener from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/456195
        together with Dimitry Rozmanov's well-known NTLM Authorization Proxy Server to make libgmail work from inside a corporate firewall. It works.

        Unfortunately, while I can set the https proxy in libgmail with a simple change to GmailAccount _retrievePage (e.g., req.set_proxy(myproxy,'https')), urllib2 doesn't pass the proxy info on with any http redirections, which Gmail uses during login to supply several necessary cookies.

        Right now I have hacked urllib2 to force the above set_proxy on subsequent http redirections, and will soon have a modified version of the above opener instead of the urllib2 hack :-)...

         
    • Raffaele Castagno

      Negative. Can't get it working... I've found something abount a squirrel isse, I'll put a ticket in the bugreport. The proxy sends Error 501: Not implemented, and it seems to be a still unresolved issue.

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks