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