Thanks .. it was that :)
2009/8/20 jose luis sanchez <joseluis.sanchez@xxxxxxxxxxxxx>:
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~