Philip Martin <philip.mar...@wandisco.com> writes:

> Mark Phippard <markp...@gmail.com> writes:
>
>> Greg is working on.  I will try Philip's suggestion but assume I need
>> to read up on what he suggested so that I understand what I need to
>> do.
>
> Something like this:
>
> $ socat -v TCP4-LISTEN:8080,reuseaddr,fork TCP4:svn.apache.org:http
>
> then in another window something like this:
>
> $ svn ls http://localhost:8080/repos/asf/subversion
>
> but it doesn't work quite as well as I expected.  I've only previously
> used socat to capture traffic between programs on the same machine.  The
> problem is that using socat as a proxy causes the Host: header sent to
> svn.apache.org to "127.0.0.1:8080" instead of "svn.apache.org".

Setting servers:global:http-proxy-host and -port to 127.0.0.1 and 8080
and then running

$ svn ls http://svn.apache.org/repos/asf/subversion

allows socat to capture the traffic.

-- 
Philip

Reply via email to