[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn operating through proxy?

From: Michael Wood <mwood_at_its.uct.ac.za>
Date: 2002-06-28 16:24:15 CEST

On Fri, Jun 28, 2002 at 05:33:07AM -0700, Mark wrote:
> Okay, not sure I got the answer I was looking for. I will try to ask a
> different way. Should I be able to download the bootstrap Subversion
> client and download the latest Subversion source from this https
> address-> https://svn.collab.net/repos/svn/trunk ?
> If it is not setup for that, that is fine. If it is setup, then I have
> not figured out how to connect to it through a proxy and firewall
> (that I cannot change) that does not allow the extended http method
> set subversion uses.

It's not set up for that. :)

What someone else suggested was that you could tunnel through the proxy
(using the CONNECT method) the same way that SSL connections get
tunneled through proxies.

Try this:
$ telnet your.proxy.server 8080
Connected to your.proxy.server.
Escape character is '^]'.
CONNECT svn.collab.net:80 HTTP/1.0

HTTP/1.0 200 Connection established

GET / HTTP/1.0

HTTP/1.1 200 OK
Date: Fri, 28 Jun 2002 14:08:52 GMT
Server: Apache/2.0.40-dev (Unix) DAV/2 SVN/0.13.1 (dev build)
Last-Modified: Mon, 24 Jun 2002 09:44:50 GMT
ETag: "308120-720-e5212880"
Accept-Ranges: bytes
Content-Length: 1824
Connection: close
Content-Type: text/html; charset=ISO-8859-1

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Of course, if you want to get the subversion client to do this, you'd
have to modify it, or else write a small proxy that tunnels through the
real proxy as above. Then tell svn to use your local proxy.

It should be very easy to write such a proxy in Python.

All that's needed is for your real proxy to support the CONNECT method,
and also allow you to connect to port 80 or 81 using it.

Michael Wood <mwood@its.uct.ac.za>
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jun 28 16:24:48 2002

This is an archived mail posted to the Subversion Dev mailing list.