You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Julian Reschke (JIRA)" <ji...@apache.org> on 2018/10/16 10:14:00 UTC

[jira] [Comment Edited] (HTTPCLIENT-1946) Support relatively new HTTP 308 redirect - RFC7538

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

Julian Reschke edited comment on HTTPCLIENT-1946 at 10/16/18 10:13 AM:
-----------------------------------------------------------------------

> As a prerequisite RFC 7538 requires conformance with RFC 7230 and 7231.

The whole idea of "conformance to RFC 2616" being different from "conformance to RFC7230 etc" is IMHO a totally bogus argument.

Any conformance changes done in RFCs 7230 etc were based on RFC 2616 either being buggy or not being implemented. There is absolutely no point in not following RFC 7230 etc, as this is simply the latest description of HTTP/1.1. 

That said, RFC 7538 defines an HTTP status code. It applies to all versions of HTTP, be it HTTP/1.0, HTTP/1.1, or HTTP/2.



was (Author: reschke):
> As a prerequisite RFC 7538 requires conformance with RFC 7230 and 7231.

The whole idea of "conformance to RFC2616" being different from "conformance to RFC7230 etc" is IMHO a totally bogus argument.

Any conformance changes done in RFCs 7230 etc were based on RF C2616 either being buggy or not being implemented. There is absolutely no point in not following RFC 7230 etc, as this is simply the latest description of HTTP/1.1. 

That said, RFC 7538 defines an HTTP status code. It applies to all versions of HTTP, be it HTTP/1.0, HTTP/1.1, or HTTP/2.


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