3 ms·
tl;dr Yes an HTTP mechanism exists, if you use curl --expect100-timeout=<large number> The HTTP request header Expect: 100-Continue and HTTP response status 10
by paulddraper 8y ago
tl;dr Yes an HTTP mechanism exists, if you use curl --expect100-timeout=<large number>
The HTTP request header Expect: 100-Continue and HTTP response status 100 Continue informs the client that the server desires to receive the request body.
However, many servers don't support it, and curl proceeds anyway if there is no Continue response after 1000ms. This timeout was originally fixed [1], but since curl 7.47.0 can be adjusted via --expect100-timeout.
[1] https://curl.haxx.se/mail/lib-2010-01/0182.html https://curl.haxx.se/mail/lib-2010-01/0182.html