[
https://issues.apache.org/jira/browse/HTTPCORE-202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12742788#action_12742788
]
Robert Newson commented on HTTPCORE-202:
----------------------------------------
To clarify, I understand that the spec is clear that "100-continue" must be
treated case-insensitively. The real bug is in mochiweb which only matches
"100-continue". Sending "100-continue" is still preferred for clients with
similar bugs.
> Expect header value sent as "100-Continue" and not "100-continue"
> -----------------------------------------------------------------
>
> Key: HTTPCORE-202
> URL: https://issues.apache.org/jira/browse/HTTPCORE-202
> Project: HttpComponents HttpCore
> Issue Type: Bug
> Reporter: Robert Newson
>
> 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
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]