Search squid archive

Re: No http responce via local device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Henrik,

indeed this solved the problem. Many thanks,
Stefan

-------- Original-Nachricht --------
> Datum: Wed, 05 Aug 2009 11:34:55 +0200
> Von: Henrik Nordstrom <henrik@xxxxxxxxxxxxxxxxxxx>
> An: mickymax@xxxxxx
> CC: squid-users@xxxxxxxxxxxxxxx
> Betreff: Re:  No http responce via local device

> ons 2009-08-05 klockan 09:35 +0200 skrev mickymax@xxxxxx:
> 
> > since squid3S12, I can see a behaviour I quite don't understand. I am
> using squid as reverse proxy with http_access allow all, listening on port
> 80.
> > 
> > A request like
> > echo -e "GET http://<some_url> HTTP/1.0\n\n" | netcat <squid_ip> 80
> > 
> > simply returns nothing, done locally on the squid server. Not even an
> error message.
> > The same request from a different server returns valid content.
> 
> Apart from the issue mentioned by Amos another possibility is the
> version of netcat used. There is many versions of netcat out there with
> different behavior when seeing "end-of-file" in stdin. Your pipe to
> netcat ends as soon as the echo have been sent, which is a little too
> early if you also want Squid to act on the request and send back a
> response..
> 
> Try this:
> 
> ( echo -e "GET http://<some_url> HTTP/1.0\n\n" ; sleep 30 ) | netcat
> <squid_ip> 80
> 
> Regards
> Henrik

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux