jira-importer opened a new issue, #1474: URL: https://github.com/apache/httpcomponents-core/issues/1474
**[Robert Newson](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=rnewson)** opened **[HTTPCORE-202](https://issues.apache.org/jira/browse/HTTPCORE-202?redirect=false)** and commented According to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html, the Expect header should use "100-continue". HttpClient sends "100-Continue" instead which is not recognized by some clients (mochiweb, for example) which is expecting the canonical form. While clients should be tolerant, HttpClient should be strict in what it sends. This causes HttpClient to block for two seconds waiting for the "HTTP 1.1 100 continue" response before it times out and posts the request body, a significant penalty. The code in question is here; ./httpcore/src/main/java/org/apache/http/protocol/HTTP.java: public static final String EXPECT_CONTINUE = "100-Continue"; A reciprocal bug is reported against mochiweb to be more tolerant at http://code.google.com/p/mochiweb/issues/detail?id=42 --- **Affects:** 4.0.1 **Issue Links:** - [HTTPCLIENT-931](https://issues.apache.org/jira/browse/HTTPCLIENT-931) Change value of 'Expect' header in org.apache.http.client.methods.HttpPost (_**"is duplicated by"**_) - [COUCHDB-433](https://issues.apache.org/jira/browse/COUCHDB-433) CouchDB doesn't handle Expect header. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
