cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: problem with HTTPS post of file: "Expectation failed"

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 25 Nov 2005 20:07:51 +0100 (CET)

On Fri, 25 Nov 2005, Chris Dawson wrote:

> 0000: HTTP/1.1 417 Expectation Failed

> Beginning at the last four lines, the request seems truncated to me, in that
> I would expect to see the "episode[title]" values placed into the multipart
> request, like I see in the liveheaders output (
> webcastinabox.com/projects/podasp/livehttp.txt)

Right, but as curl uses the "Expect: 100-continue" header it gives the server
the chance to reject the POST before we send away all the data. And so it does
as can be seen here: "HTTP/1.1 417 Expectation Failed"

> Am I using the -F switch incorrectly, or misunderstanding it's utility?

You seem to be using it correctly, but the server rejects your request for
some reason unknown to me.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-11-25