[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-1482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18031138#comment-18031138
 ] 

Oleg Kalnichevski commented on HTTPCLIENT-1482:
-----------------------------------------------

> "because it can't" is quite a bold–and incorrect–statement

[~nbryant] Please take a look the HTTP specification with regards to the 
purpose and intent of the `expect: continue` handshake. Please also note that 
not sending request body does not make POST requests safe or idempotent.

Oleg

> ability to expect-continue only if potentially stale
> ----------------------------------------------------
>
>                 Key: HTTPCLIENT-1482
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1482
>             Project: HttpComponents HttpClient
>          Issue Type: Wish
>          Components: HttpClient (classic)
>            Reporter: Nathan Bryant
>            Priority: Minor
>             Fix For: 5.6-alpha1
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> If the stale check fails, non-idempotent queries such as POST can return a 
> "no response from server" error to the application stack, resulting in 
> ambiguity as to whether the request was received and acted on in some fashion 
> by the host, possibly resulting in a server-side error.
> Might be nice as a RequestConfig option to be able to enable the 
> expect-continue handshake only for cases where the connection was recycled 
> from a pool.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to