views:

1241

answers:

1

I'm attempting to connect to a remote HTTPS SVN server from inside a corporate firewall using TortoiseSVN. I am required to use a proxy for this connection. My problem is that TortoiseSVN's proxy settings only include an option to set a direct proxy server address. The proxy I am connecting through, however, is configured via a script. In Firefox, for example, I use the "Automatic proxy configuration URL" option in the network settings.

Is there any way to use a proxy configuration scripts with Tortoise? I can't find one in the config UI - is there a way to configure it through editing a config file?

+4  A: 

There may be a cleaner way to do this but you could simply get the URL of the automatic configuration file from your firefox settings and open it: .pac files are raw text with a fairly simple syntax.

Extracting the ip/port and other configuration info for your corporate proxy from that file should be relatively simple (look for the one that applies to your IP range if there are more than one).

Obviously, this isn't very pretty in the sense that, if the proxy configuration changes, you'll have to do this again instead of benefiting from the automated settings. In practice, this simple trick has been very useful for everything from Putty to TortoiseSVN for me !

Bethor
It worked perfectly, thanks. I just entered the URL from the script into Firefox and it let me download the script file. The script ended up being unexpectedly complex, but I was able to run it through the pacparser library at http://code.google.com/p/pacparser, which was able to immediately tell me which proxy to use for the SVN url. Waiting for the current revision to finish downloading as I type this :)
matthock
Glad I could help, and thanks for the link to pacparser ! It might come in hand if our IT decides to make the pac file more complex, ours is pretty long but simple enough to parse manually.
Bethor
What if there are SVN repositories inside AND outside of the LAN? Is it necessary for me to keep turning on and off the "Enable Proxy Server" option in the settings? --- If the tool is a thingy which integrates into the Windows File Explorer then it is not too far to create a "Use Internet Explorer settings".
Notinlist