You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2009/08/13 13:22:14 UTC

[jira] Updated: (HTTPCORE-202) Expect header value sent as "100-Continue" and not "100-continue"

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

Oleg Kalnichevski updated HTTPCORE-202:
---------------------------------------

             Priority: Minor  (was: Major)
    Affects Version/s: 4.0.1
        Fix Version/s: 4.1-alpha1
                       4.0.2
           Issue Type: Improvement  (was: Bug)

> 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