tags:

views:

505

answers:

3

Hi Guys,

I want to check code from the repository http://code.sixapart.com/svn/perlbal/ . I can only access the the repository url by setting a proxy . I guess if i want to get the code from the same url by svn I need to configure a proxy too . so does anyone of you could tell me how to configure a http proxy in svn ?

by the way, I use the command-line svn client under linux.

A: 

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

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

should do the trick. Most http libraries check for this (and other) environment variables.

Petesh
+4  A: 

Have you seen the FAQ entry What if I'm behind a proxy??

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

For me this involved uncommenting and setting the following lines:

#http-proxy-host=http://my.proxy
#http-proxy-port=80
#http-proxy-username=[username]
#http-proxy-password=[password]
Rich Seller
+2  A: 

You can find the instructions here. Basically you just add

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

to your ~/.subversion/servers file

Kimvais
My problem is at clent side rather than the server side ...
Haiyuan Zhang
This is client side configuration. The 'servers' file means settings to connect to servers.See http://svnbook.red-bean.com/en/1.1/ch07.html#svn-ch-7-sect-1.3.1
Kimvais