Re: [squid-users] Talking to a service via squid

From: Robert Collins <[email protected]>
Date: 22 Apr 2003 16:39:49 +1000

On Tue, 2003-04-22 at 16:26, Adam Finster wrote:
> Hello,
>
> Our application exposes a service which we can communicate with via TCP.
>
> We do not access it via a web page or script (such as php / asp / etc)
>
> >From what I've read, you need to change the connection, and modify the
> HTTP header to get through the proxy server.
>
> Below is an example of what I'm posting. Can someone tell me if this
> will work?
>
> connected to <proxy address>:<proxy port>
> HTTP Header:
> -------------------------------------------
> GET <our command here eg ABCDEF> HTTP/1.0
> Host: <our server name here> : <our port number>
> Proxy-Authorization:Basic <Base64 encoded proxy username : password>
> -------------------------------------------

That won't work. RFC 2616 specifies TWO eol's after the last header.
Secondly, when traversing a proxy, your command should be a valid uri:
http://theserver/ABCDEF
Then you'll need to deal with caching as well, otherwise you may get a
surprise when you repeat commands :}.

Cheers,
Rob

-- 
GPG key available at: <http://users.bigpond.net.au/robertc/keys.txt>.

Received on Tue Apr 22 2003 - 00:40:29 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:15:08 MST