Skip to contentSkip to conversation

cvsimport using proxy?

DISCUSSION Junio C Hamano 3 participants 3 messages Jun 15, 2016 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

I was going to try cvsimport over the firewall --

CVSROOT=':pserver;proxy=firewall;proxyport=3128:[email protected]:/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?

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Hi,

Martin Langhoff:

Quoted 5 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.

Signature · 6 lines
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  [email protected]
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
#3 lore raw

Hi,

Quoted 10 lines · Matthias Urlichs

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