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?
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):
% 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.
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 :-)...
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.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.