cURL / Mailing Lists / curl-users / Single Mail

curl-users

Setting any "Expect: ..." header disables "Expect: 100-continue" for POST

From: Brian Guetzlaff <brian.guetzlaff_at_gmail.com>
Date: Mon, 14 Feb 2011 15:56:21 -0600

Hi all,

When attempting to POST a large file (~ 5MB) to a server, I am setting
a custom Expect header (-H "Expect: Content-MD5"). However, this
seems to disable the normally-included "Expect: 100-continue" header,
which I still want to be included (the server expresses a great deal
of discontent in its logs). Do I need to explicitly add in the
100-continue expectation in this case? If so, when was this
introduced into curl?

Thanks,
---Brian
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-02-14