dhellmann / rst2blogger

Convert reStructuredText to HTML suitable for posting to Blogger
Other
13 stars 6 forks source link

http proxy support? #2

Closed g2boojum closed 12 years ago

g2boojum commented 12 years ago

It would be awesome if rst2blogger would do the right thing automatically if the http_proxy environmental variable is set.

That said, is there a simple non-automatic way to use rst2blogger through an http proxy?

Thanks!

dhellmann commented 12 years ago

I assume from the question that you have tried it and it does not work? I expected gdata to support proxies.

g2boojum commented 12 years ago

Taking a closer look, it seems that it's choking on the authentication info in my https_proxy. I get the following:

Failed to authenticate: invalid literal for int() with base 10: 'XXXXXXXXX@proxyname.companyname.com'.

I currently have https_proxy="https://username:passwd@proxyname.companyname.com:80", and I'm trying to use the ClientLogin mechanism.

dhellmann commented 12 years ago

I wonder if the code parsing that proxy URL is assuming the value after the first colon will be the port number.

g2boojum commented 12 years ago

I think so.

It looks like proxy support works if I use:

https_proxy="https://proxyname.companyname.com:80" proxy_username="username" proxy_password="XXXXXXXXX"

That's a pain, but it's clearly an upstream problem.

g2boojum commented 12 years ago

Looks like this should have been fixed upstream some time ago:

https://code.google.com/p/gdata-python-client/issues/detail?id=414