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

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

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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


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

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ 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


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

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ 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


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

Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
    [ 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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org