Re: [squid-users] Unable to test HTTP PUT-based file upload via Squid Proxy

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 16 May 2012 10:20:24 +1200

On 16.05.2012 00:39, Harry Simons wrote:
<snip>
>
> **Request:**
>
> PUT http://WEB-SERVER/upload/sample.put HTTP/1.1
> User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5
> OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Host: WEB-SERVER
> Pragma: no-cache
> Accept: */*
> Proxy-Connection: Keep-Alive
> Transfer-Encoding: chunked
> Expect: 100-continue
>
> **Response:**
>
> HTTP/1.0 501 Not Implemented
> Server: squid/2.6.STABLE21
> Date: Sun, 13 May 2012 02:11:39 GMT
> Content-Type: text/html
> Content-Length: 1078
> Expires: Sun, 13 May 2012 02:11:39 GMT
> X-Squid-Error: ERR_UNSUP_REQ 0
> X-Cache: MISS from SQUID-PROXY-FQDN
> X-Cache-Lookup: NONE from SQUID-PROXY-FQDN:3128
> Via: 1.0 SQUID-PROXY-FQDN:3128 (squid/2.6.STABLE21)
> Proxy-Connection: close
>
<snip>

Curl is attempting to use HTTP/1.1 features which 2.6 does not support
(Expect:100-continue, Transfer-Encoding:chunked), and is too old to even
have proper workarounds for broken clients. Your request won't work due
to these even if PUT was okay.

Please upgrade. squid-2.7/3.1 are still HTTP/1.0 but have some hacks to
workaround the HTTP/1.1 features curl is asking for. Squid-3.2 (beta)
has HTTP/1.1 support.

Amos
Received on Tue May 15 2012 - 22:20:31 MDT

This archive was generated by hypermail 2.2.0 : Thu May 17 2012 - 12:00:05 MDT