Search squid archive

Re: how to avoid use http/1.0 between squid and the target

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

 




Date: Thu, 23 Nov 2023 01:44:30 +1300
From: Amos Jeffries <squid3@xxxxxxxxxxxxx>
To: squid-users@xxxxxxxxxxxxxxxxxxxxx
Subject: Re:  how to avoid use http/1.0 between squid and
	the target
Message-ID: <ec400901-951e-4112-ac53-ae8cd3351301@xxxxxxxxxxxxx>
Content-Type: text/plain; charset=UTF-8; format=flowed

On 22/11/23 23:03, David Komanek wrote:
Hello,

I have a strange problem (definitely some kind of my own ignorance) :

If I try to access anything on the site https://www.samba.org WITHOUT
proxy, my browser negotiate happily for http/2 protocol and receives all
the data. For?http://www.samba.org WITHOUT proxy it starts with http/1.1
which is auto-redirected from http to https and continues with http/2.
So far so good.

But WITH proxy, it happens that squid is using http/1.0.
That is odd. Squid should always be sending requests as HTTP/1.1.

Have a look at the debug level "11,2" cache.log records to see if Squid
is actually sending 1.0 or if it is just relaying CONNECT requests with
possibly HTTP/1.0 inside.

Hello,

here are the debug logs (IP addresses redacted) after connection attempt to https://samba.org/ :

----------
2023/11/27 09:58:07.345 kid1| 11,2| client_side.cc(1332) parseHttpRequest: HTTP Client conn21570 local=195.113.x.y:3128 remote=10.10.a.b:53868 FD 666 flags=1 2023/11/27 09:58:07.345 kid1| 11,2| client_side.cc(1336) parseHttpRequest: HTTP Client REQUEST:
---------
CONNECT samba.org:443 HTTP/1.1
Host: samba.org:443
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36


----------
2023/11/27 09:58:07.370 kid1| 11,2| Stream.cc(273) sendStartOfMessage: HTTP Client conn21576 local=195.113.x.y:3128 remote=10.10.a.b:16730 FD 1267 flags=1 2023/11/27 09:58:07.370 kid1| 11,2| Stream.cc(274) sendStartOfMessage: HTTP Client REPLY:
---------
HTTP/1.1 400 Bad Request
Server: squid/6.5
Mime-Version: 1.0
Date: Mon, 27 Nov 2023 08:58:07 GMT
Content-Type: text/html;charset=utf-8
Content-Length: 3363
X-Squid-Error: ERR_PROTOCOL_UNKNOWN 0
Cache-Status: pteryx.natur.cuni.cz
Via: 1.1 pteryx.natur.cuni.cz (squid/6.5)
Connection: close

So, it seems it's not true that squid is using http/1.0, but the guy on the other side told me so. According to the log, do you think I can somehow make it working or is it definitely problem on the samba.org webserver?

Thanks again,

  David


HTH
Amos

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.squid-cache.org/listinfo/squid-users




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

  Powered by Linux