Squid Support (Henrik Nordstrom) wrote:
> 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.
>
I tried this and all I could see was the headers coming back into my
network. Not the headers going to the internet. Did I miss something?
>
>>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.
I was hoping somebody could give me a clue as to what was wrong with the
simple ms code. I guess this is the wrong newsgroup. I should probably
ask in a ms newsgroup.
>
Received on Mon May 06 2002 - 07:58:52 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:07:55 MST