Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP 1xx Status Codes

Does anyone of you has ever seen a real life occurence of the HTTP "Expect" header? Or any proxy or server answering with a "100 Continue"-Status Message? Do popular HTTP servers like IIS or Apache ever encounter situations where a "100 Continue" is returned?

Thanks, Max

like image 520
bot47 Avatar asked Mar 24 '26 02:03

bot47


2 Answers

libcurl will add the "Expect: 100-Continue" Header if the content of a POST request exceeds 1024 bytes.

At least since 2003 SUN refuses to add support for this header to the servlet API. Java web application inside servlet containers have no ability to control 100 Continue responses.

Most servlet container implementations will immediately send this response whenever an "Expect: 100-Continue" is received.

like image 103
mkoeller Avatar answered Mar 27 '26 03:03

mkoeller


The .net System.Net.HttpWebRequest sends an Expect: 100-continue on every post request by default. Tomcat, at least, sends a 100-continue before executing the servlet.

like image 22
Tim Sylvester Avatar answered Mar 27 '26 05:03

Tim Sylvester