Hi,
I try to upload a file with curl which works fine without squid. But when
I try the upload with squid I get an error 417 Expectation Failed. I use
squid 3.1.16.
What does that mean ?
Thank you
Markus
curl -v --proxy-negotiate --form file_upload=@test.txt --form
do=test --form subdo=file_upload --form http_submit="Start HTTP upload"
http://www.csm-testcenter.org/test
* About to connect() to proxy opensuse12.suse.home port 3128 (#0)
* Trying 2a01:348:1f9::29... connected
> POST http://www.csm-testcenter.org/test HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-unknown-linux-gnu) libcurl/7.22.0
> OpenSSL/1.0.0e zlib/1.2.5 c-ares/1.7.5 libidn/1.22 libssh2/1.2.9
> Host: www.csm-testcenter.org
> Accept: */*
> Proxy-Connection: Keep-Alive
> Content-Length: 515
> Expect: 100-continue
> Content-Type: multipart/form-data;
> boundary=----------------------------40e24e733a65
>
* HTTP 1.0, assume close after body
< HTTP/1.0 417 Expectation Failed
< Server: squid/3.1.16
< Mime-Version: 1.0
< Date: Tue, 30 Oct 2012 23:01:43 GMT
< Content-Type: text/html
< Content-Length: 4060
< X-Squid-Error: ERR_INVALID_REQ 0
< Vary: Accept-Language
< Content-Language: en
< X-Cache: MISS from opensuse12
< X-Cache-Lookup: NONE from opensuse12:3128
< Via: 1.0 opensuse12 (squid/3.1.16)
< Connection: close
<
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ERROR: The requested URL could not be retrieved</title>
<style type="text/css"><!--
/*
Stylesheet for Squid Error pages
Adapted from design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
*/
/* Page basics */
* {
font-family: verdana, sans-serif;
}
html body {
margin: 0;
padding: 0;
background: #efefef;
font-size: 12px;
color: #1e1e1e;
}
/* Page displayed title area */
#titles {
margin-left: 15px;
padding: 10px;
padding-left: 100px;
background: url('http://www.squid-cache.org/Artwork/SN.png')
no-repeat left;
}
/* initial title */
#titles h1 {
color: #000000;
}
#titles h2 {
color: #000000;
}
/* special event: FTP success page titles */
#titles ftpsuccess {
background-color:#00ff00;
width:100%;
}
/* Page displayed body content area */
#content {
padding: 10px;
background: #ffffff;
}
/* General text */
p {
}
/* error brief description */
#error p {
}
/* some data which may have caused the problem */
#data {
}
/* the error message received from the system or other software */
#sysmsg {
}
pre {
font-family:sans-serif;
}
/* special event: FTP / Gopher directory listing */
#dirmsg {
font-family: courier;
color: black;
font-size: 10pt;
}
#dirlisting {
margin-left: 2%;
margin-right: 2%;
}
#dirlisting tr.entry td.icon,td.filename,td.size,td.date {
border-bottom: groove;
}
#dirlisting td.size {
width: 50px;
text-align: right;
padding-right: 5px;
}
/* horizontal lines */
hr {
margin: 0;
}
/* page displayed footer area */
#footer {
font-size: 9px;
padding-left: 10px;
}
body
:lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya,
sans-serif; float: right; }
:lang(he) { direction: rtl; float: right; }
--></style>
</head><body id=ERR_INVALID_REQ>
<div id="titles">
<h1>ERROR</h1>
<h2>The requested URL could not be retrieved</h2>
</div>
<hr>
<div id="content">
<p><b>Invalid Request</b> error was encountered while trying to process the
request:</p>
<blockquote id="data">
<pre>POST /test HTTP/1.1
User-Agent: curl/7.22.0 (x86_64-unknown-linux-gnu) libcurl/7.22.0
OpenSSL/1.0.0e zlib/1.2.5 c-ares/1.7.5 libidn/1.22 libssh2/1.2.9
Host: www.csm-testcenter.org
Accept: */*
Proxy-Connection: Keep-Alive
Content-Length: 515
Expect: 100-continue
Content-Type: multipart/form-data;
boundary=----------------------------40e24e733a65
</pre>
</blockquote>
<p>Some possible problems are:</p>
<ul>
<li><p>Missing or unknown request method.</p></li>
<li><p>Missing URL.</p></li>
<li><p>Missing HTTP Identifier (HTTP/1.0).</p></li>
<li><p>Request is too large.</p></li>
<li><p>Content-Length missing for POST or PUT requests.</p></li>
<li><p>Illegal character in hostname; underscores are not allowed.</p></li>
<li><p>HTTP/1.1 <q>Expect:</q> feature is being asked from an HTTP/1.0
software.</p></li>
</ul>
<p>Your cache administrator is <a
href="mailto:webmaster?subject=CacheErrorInfo%20-%20ERR_INVALID_REQ&body=CacheHost%3A%20opensuse12%0D%0AErrPage%3A%20ERR_INVALID_REQ%0D%0AErr%3A%20%5Bnone%5D%0D%0ATimeStamp%3A%20Tue,%2030%20Oct%202012%2023%3A01%3A43%20GMT%0D%0A%0D%0AClientIP%3A%202a01%3A348%3A1f9%3A%3A29%0D%0A%0D%0AHTTP%20Request%3A%0D%0APOST%20%2Ftest%20HTTP%2F1.1%0AUser-Agent%3A%20curl%2F7.22.0%20(x86_64-unknown-linux-gnu)%20libcurl%2F7.22.0%20OpenSSL%2F1.0.0e%20zlib%2F1.2.5%20c-ares%2F1.7.5%20libidn%2F1.22%20libssh2%2F1.2.9%0D%0AHost%3A%20www.csm-testcenter.org%0D%0AAccept%3A%20*%2F*%0D%0AProxy-Connection%3A%20Keep-Alive%0D%0AContent-Length%3A%20515%0D%0AExpect%3A%20100-continue%0D%0AContent-Type%3A%20multipart%2Fform-data%3B%20boundary%3D----------------------------40e24e733a65%0D%0A%0D%0A%0D%0A">webmaster</a>.</p>
<br>
</div>
<hr>
<div id="footer">
<p>Generated Tue, 30 Oct 2012 23:01:43 GMT by opensuse12 (squid/3.1.16)</p>
<!-- ERR_INVALID_REQ -->
</div>
</body></html>
* Closing connection #0
Received on Tue Oct 30 2012 - 23:06:07 MDT
This archive was generated by hypermail 2.2.0 : Wed Oct 31 2012 - 12:00:05 MDT