https_proxy authentication fails
Brought to you by:
owenjm
Proxy server username and password are not handled in CheckGmail, making it unusable behind a proxy that requires authentication.
https_proxy=http://username:password@proxy.server:port
shows error "... (Bad service 'password@proxy.server')"
I'm running CheckGmail v1.14pre2-svn
This is the exact same problem reported on launchpad:
https://bugs.launchpad.net/ubuntu/+source/checkgmail/+bug/376825
Same problem here... running Checkgmail behind a proxy requiring authentication and it does not work...
The variable https_proxy has been set in the environment variables, but checkgmail displays the following error:
"Error: 500 Can't connect to www.google.com:443 (Connection refused)"
Thanks if someone has a patch :)
Alexandre 8)
OK, I solved this issue by declaring the following variables in /usr/bin/checkgmail :
$ENV{PERL_NET_HTTPS_SSL_SOCKET_CLASS} = "Net::SSL";
$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;
$ENV{HTTPS_PROXY} = '_my_proxy_adress:_my_proxy_port_';
$ENV{HTTPS_PROXY_USERNAME} = 'my_proxy_username_';
$ENV{HTTPS_PROXY_PASSWORD} = '_my_proxy_password_';
I don't pretend it's the best and most elegant solution to put these variables in the checkgmail itself, but well, it's easy and it did the job correctly for me after that.
Hope it can help,
Regards,
Alexandre 8)