Re: [squid-users] 411 error

From: Squid Support (Henrik Nordstrom) <hno@dont-contact.us>
Date: Mon, 6 May 2002 08:17:42 +0200

On Monday 06 May 2002 00:19, Robert Davis wrote:

> I am new to squid. I installed squid because I needed to test a
> program I wrote with a firewall. I looked and found squid to be the
> only firewall installed by default on linux. I have a vc++ app
> written with httpopenrequest and httpsendrequest. I was getting a
> 411 error when I did a "HEAD" request and a 200 when a "GET"
> request was done. The error read length required but none of the
> functions had length as an argument. I found that version 2.2 of
> squid was giving me this error where as version 2.4 of squid did
> not. My questions is 2 fold.

Versions prior to Squid-2.4 will give error 411 on GET/HEAD requests
having a Content-length header..

> 1. How can I see the headers of the request so I can see what the
> problem with the app is? I have read in the archives that a
> protocol analyzer may be the only way.

log_mime_hdrs in squid.conf.

> 2. Is this typical behaviour of proxies? I need this app to work
> with all proxies.

Proxies typically reject requests not making sense to them..

> 3. How can I fix my app so it works more proxies?

By not including a Content-length header in GET/HEAD requests.

-- 
MARA Systems AB, Giving you basic free Squid support
Your source of advanced web reverse proxying solutions
http://www.marasystems.com/producs/
Received on Mon May 06 2002 - 00:30:53 MDT

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