How to configure HTTP proxy for svn

I want to check the code from the repository http://code.sixapart.com/svn/perlbal/ . I can only access the repository URL by setting a proxy server. I assume that if I want to get the code from the same URL using svn, I also need to configure a proxy server. So can any of you tell me how to configure an HTTP proxy in svn?

By the way, I am using svn client interface under Linux.

+83
svn proxy
Sep 29 '09 at 8:09
source share
6 answers

You saw an entry in the FAQ. What if I am for a proxy?

... edit the "servers" configuration file to indicate which proxy to use. The location of the files depends on your operating system. On Linux or Unix, it is located in the ~ / .subversion directory. On Windows, this is "% APPDATA% \ Subversion". (Try "echo% APPDATA%", note that this is a hidden directory.)

For me, this involves uncommenting and setting up the following lines:

 #http-proxy-host=my.proxy #http-proxy-port=80 #http-proxy-username=[username] #http-proxy-password=[password] 
+109
Sep 29 '09 at 8:15
source

You can find instructions here . Basically you just add

 [global] http-proxy-host = ip.add.re.ss http-proxy-port = 3128 http-proxy-compression = no 

to ~ / .subversion / servers file

+54
Sep 29 '09 at 8:17
source

On Windows 7, you may need to edit this file.

C: \ Users \ <username> \ AppData \ Roaming \\ Subversion servers

 [global] http-proxy-host = ip.add.re.ss http-proxy-port = 3128 
+9
May 20 '14 at 7:58
source

There are two general approaches for this:

If you are on Windows, you can also write http-proxy- settings to the Windows registry . This is quite convenient if you need to apply proxy settings in an Active Directory environment using Group Policy Objects.

+7
Feb 13 '15 at 16:15
source

In TortoiseSVN, you can configure the proxy server under "Settings"> "Network"

0
Dec 04 '15 at 19:33
source

Most * nixen understand the http_proxy environment variable when executing web requests.

 export http_proxy=http://my-proxy-server.com:8080/ svn co http://code.sixapart.com/svn/perlball/ 

gotta do the trick. Most HTTP libraries validate these (and other) environment variables.

-one
Sep 29 '09 at 8:14
source



All Articles