cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1808474 ] HTTP_EXPECT is sent with file uploads

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sat, 06 Oct 2007 13:30:40 -0700

Bugs item #1808474, was opened at 2007-10-06 08:57
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1808474&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: http
Group: bad behaviour
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: tibberous (tibberous)
Assigned to: Daniel Stenberg (bagder)
Summary: HTTP_EXPECT is sent with file uploads

Initial Comment:
I wrote a PHP script to upload files to a form. I kept getting the error code 417, Expectation Failed. I am guessing this is caused by the HTTP_EXPECT = 100-continue header that is being sent by curl.

Neither IE of Firefox send this header when doing form file uploads. While most servers do not care about it, this particular server won't work with it.

I tried to turn it off with curl_setopt, but it wouldn't let me, it includes it as soon as files are added to the post vars.

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2007-10-06 22:30

Message:
Logged In: YES
user_id=1110
Originator: NO

This is not a bug, this is by design. If you want to discuss changing the
default on this, then please send your reasoning to the curl-library
mailing list and we can discuss it.

IMHO, browsers _should_ send it and most servers do "care" about in the
way that they support it. And libcurl offers an easy way to disable it.

PS, curl_setopt() is PHP, not the libcurl API

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1808474&group_id=976
Received on 2007-10-06

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET