Re: [squid-users] Curl vs Wget on Squid

From: jose luis sanchez <joseluis.sanchez_at_m-centric.com>
Date: Thu, 20 Aug 2009 17:20:21 +0200

Thanks .. it was that :)

> 2009/8/20 jose luis sanchez <joseluis.sanchez_at_m-centric.com>:
>
>> Hi all.
>> I have an squid proxy installed and configured by default, on an Ubuntu 9.04
>> installation.
>>
>> The proxy it at localhost:3128, by default, and a http server is listening
>> on port 8080 ( tomcat ) , with some application of mine.
>>
>> Sending the SAME request, from curl and from wget, i get different
>> behaviours.
>> With curl, i reach the 8080 server directly, but from wget, i receive a
>> HTTP/1.0 400 Bad Request response on first instance, and then, the 8080
>> server answers.
>>
>> The problem is that my application only listens to the first response, thus,
>> getting a 400 Bad request, failing :(
>>
>> Is anything related to squid or may it be related to wget ?
>>
>>
>
>
> No. nothing was wrong to both squid and wget.
> But you need to specify a Host: header when using wget, like:
>
> wget --header=\"Host: some.host\" http://some.ip/
>
> Good luck~
>
>
Received on Thu Aug 20 2009 - 15:20:22 MDT

This archive was generated by hypermail 2.2.0 : Thu Aug 20 2009 - 12:00:04 MDT