views:

915

answers:

2

How do I use Bazaar with a HTTP proxy? I can't find anything in their documentation.

+5  A: 

Set the http_proxy environment variable to point to your proxy, eg. (on Windows):

set http_proxy=http://webcache.mycompany.com:3128/

See the "Environment variables" section of http://bazaar-vcs.org/ConfiguringBzr

RichieHindle
Currently, we have a project hosted over launchpad and our network is behind a proxy which does not allow us to send data over SSH. I'm currently using Windows XP and have set the http_proxy variable. Since it doesn't work, I'm assuming that regardless of having set the proxy variable, the restriction of the proxy to SSH is causing the problem. Will it solve the problem then if I request SSH be allowed by our network administrator? Or can I resolve this problem without having to ask changes in our network settings?Thanks!
Paul
@Paul: Do you really mean SSH? Or SSL? If you're using HTTP, you're not using SSH. You're using SSL if your URLs start with 'https', and your proxy will need to allow SSL (aka TLS). But I don't know anything about Launchpad - does it require SSL? Can you simply remove the 's' from 'https'? If you really do mean SSH, I don't think your proxy is relevant - instead, you need to configure your firewall to allow outgoing SSH.
RichieHindle
@RichieHindle: launchpad seems to require SSH to send account details and allow you to access/modify files in the server. In this case you're right, it is probably not the proxy causing the problem but the firewall. Thanks!
Paul
+1  A: 

Also do not forget to set HTTPS_PROXY environment variable.

set https_proxy=http://my.proxy.com:3128/
sax