hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HTTPCORE-202) Expect header value sent as "100-Continue" and not "100-continue"
Date Thu, 13 Aug 2009 19:27:14 GMT

     [ https://issues.apache.org/jira/browse/HTTPCORE-202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski resolved HTTPCORE-202.
----------------------------------------

    Resolution: Fixed

Fixed in trunk and 4.0.x branch

Oleg

> 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: Improvement
>    Affects Versions: 4.0.1
>            Reporter: Robert Newson
>            Priority: Minor
>             Fix For: 4.0.2, 4.1-alpha1
>
>
> 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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message