summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-09-24 07:50:46 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-09-24 07:50:46 +0000
commit95df5d042c82871ef889e66a842e3fd4ef55e861 (patch)
tree36eaf1798c8bea88f660c273738bf3f5acfd4d01
parent22059858fe21655263ebb217bbe0561806d7a95f (diff)
downloadcurl-95df5d042c82871ef889e66a842e3fd4ef55e861.tar.gz
4.16 My HTTP POST or PUT requests are slow!
-rw-r--r--docs/FAQ15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/FAQ b/docs/FAQ
index 90713ad4a..f96acf1b3 100644
--- a/docs/FAQ
+++ b/docs/FAQ
@@ -70,6 +70,7 @@ FAQ
4.13 Why is curl -R on Windows one hour off?
4.14 Redirects work in browser but not with curl!
4.15 FTPS doesn't work
+ 4.16 My HTTP POST or PUT requests are slow!
5. libcurl Issues
5.1 Is libcurl thread-safe?
@@ -868,6 +869,20 @@ FAQ
mandated by RFC4217. This kind of connection then of course uses the
standard FTP port 21 by default.
+ 4.16 My HTTP POST or PUT requests are slow!
+
+ libcurl makes all POST and PUT requests (except for POST requests with a
+ very tiny request body) use the "Expect: 100-continue" header. This header
+ allows the server to deny the operation early so that libcurl can bail out
+ already before having to send any data. This is useful in authentication
+ cases and others.
+
+ However, many servers don't implement the Expect: stuff properly and if the
+ server doesn't respond (positively) within 1 second libcurl will continue
+ and send off the data anyway.
+
+ You can disable libcurl's use of the Expect: header the same way you disable
+ any header, using -H / CURLOPT_HTTPHEADER, or by forcing it to use HTTP 1.0.
5. libcurl Issues