[
https://issues.apache.org/jira/browse/HTTPCLIENT-1946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16650416#comment-16650416
]
Gary Gregory commented on HTTPCLIENT-1946:
------------------------------------------
[~davidpel]:
More HTTP status codes have been added to httpcore-5.0-beta4-RC1. A subsequent
HttpClient 5.0-beta will then depend on httpcore-5.0-beta4, which should happen
soonish.
Specifically, HTTPCORE-552, HTTPCORE-553, HTTPCORE-554, HTTPCORE-555,
HTTPCORE-556, HTTPCORE-557, HTTPCORE-558: added status codes 103, 208, 226,
308, 451, 506, 508, 510
You can test it here:
https://dist.apache.org/repos/dist/dev/httpcomponents/httpcore-5.0-beta4-RC1/
This will not do you much good unless you clone and checkout the git master of
HttpClient and build it with httpcore-5.0-beta4, which may require code changes.
Alternatively, you can wait for the next beta of HttpClient 5. This might be
the least complicated option for you depending on your level of urgency.
Gary
> Support relatively new HTTP 308 redirect - RFC7538
> --------------------------------------------------
>
> Key: HTTPCLIENT-1946
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1946
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient (classic)
> Affects Versions: 3.1 (end of life), 4.5.6
> Environment: Irrelevant
> Reporter: David Peleg
> Priority: Major
> Labels: easyfix, usability
>
> RFC7538 added a new HTTP redirect code: 308.
>
> To support it all you need is adding 2 rows:
> # In HttpStatus add constant: SC_PERMANENT_REDIRECT = 308
> # In HttpMethodDirector.isRedirectNeeded() (in version 3.x) add
> SC_PERMANENT_REDIRECT to the switch clause.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]