Re: Tunneling ports with Putty through an http proxy

From: Jacob Nevins (
Date: 06/08/05

Date: 08 Jun 2005 15:27:21 +0100 (BST)

David McCarthy <> writes:
>Jacob Nevins wrote:
>> No, there's no way currently to log the proxy negotiations. (Why do you
>> want to know?)
>Because I want to know the exact string in order to use it as a line
>command (I've got a Mac at work and I can't use Putty)

>From the source code for 0.58, it looks like it goes something like:

  CONNECT <host>:<port> HTTP/1.1 <CRLF>
  Host: <host>:<port> <CRLF>
[ Proxy-Authorization: Basic <base64-stuff> <CRLF> ]

where <base64-stuff> is the base64 encoding of "<username>:<password>",
if authentication is in use.