threads / discuss / 2014

cvsimport using proxy?

Subject: cvsimport using proxy?

## tl;dr

3 messages between Oct 4, 2005 and Oct 5, 2005.

replies: 2people: 3as markdown or json

Junio C Hamano· Oct 4, 2005, 21:42 UTC · lore
I was going to try cvsimport over the firewall --
CVSROOT=':pserver;proxy=firewall;proxyport=3128:anoncvs@anoncvs.postgresql.org:/projects/cvsroot' cvs co -c

works fine, but it does not appear to me that cvsimport knows about the proxied connection. Is anybody savvy and helpful enough to look into adding this?

Matthias Urlichs· Oct 5, 2005, 12:50 UTC · lore

Re: cvsimport using proxy?

Hi,
Martin Langhoff:
Show 5 quoted lines
> For the second stage, we'll need to hack CVSConn::conn() method around
> line 118. As I have never used the proxy option, I did a bit of
> googling. It seems that cvs 1.12.11 knows how to tunnel its protocol
> over an HTTP proxy.
> 
HTTP proxies are quite simple, you say 
   1. Connect to Proxy Server.
   2. Issue CONNECT Host:Port HTTP/1.1<CR><LF>.
   3. Issue <CR><LF>.
   4. Wait for a line of response.
      If it contains HTTP/1.X 200 , the connection is successful.
   5. Read further lines of response until you receive an empty line.
   6. Now, you are connected to outside world through a proxy.
      Do any data exchange you want.
-- 
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  smurf@smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
 - -
Almost all absurdity of conduct arises from the imitation of those who we
cannot resemble.
					-- Samuel Johnson
Johannes Schindelin· Oct 5, 2005, 13:55 UTC · re: Matthias Urlichs · lore

Re: cvsimport using proxy?

Hi,
On Wed, 5 Oct 2005, Matthias Urlichs wrote:
Show 10 quoted lines
> HTTP proxies are quite simple, you say 
> 
>    1. Connect to Proxy Server.
>    2. Issue CONNECT Host:Port HTTP/1.1<CR><LF>.
>    3. Issue <CR><LF>.
>    4. Wait for a line of response.
>       If it contains HTTP/1.X 200 , the connection is successful.
>    5. Read further lines of response until you receive an empty line.
>    6. Now, you are connected to outside world through a proxy.
>       Do any data exchange you want.

Even simpler is to use transconnect, which transparently uses the proxy by intercepting the connect method using LD_PRELOAD.

Ciao, Dscho

← back to recent threads