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] [Commented] (HTTPCLIENT-1799) First request does not include Http body for POST request with Digest auth.
Date Tue, 03 Jan 2017 15:52:58 GMT

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

Oleg Kalnichevski commented on HTTPCLIENT-1799:
-----------------------------------------------

What you want is already there and is referred to as the 'expect-continue' handshake. Please
note that the 'expect-continue' handshake implementations _may_ vary and if you want to be
on a safe side what you might want instead is to do a HEAD or OPTIONS instead of the first
POST followed by POST with enclosed entity content (second POST in your example).

Oleg    

> First request does not include Http body for POST request with Digest auth.
> ---------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1799
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1799
>             Project: HttpComponents HttpClient
>          Issue Type: Wish
>          Components: HttpClient (classic)
>    Affects Versions: 4.5.2
>            Reporter: samuel ma
>              Labels: Digest
>
> If I want to use Digest for Http Post request, the flow is:
> 1. client---[post]--->server
> 2. client<---[401]---server
> 3. client ---auth--->server
> Is that possible not include http body in the first post request to server?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message