HTTP/308 handling in HttpURLConnection

Robert Stupp snazy at snazy.de
Mon Jun 13 07:19:22 UTC 2022


Yup, I have one. Created https://bugs.openjdk.org/browse/JDK-8288295 <https://bugs.openjdk.org/browse/JDK-8288295>

> Am 10.06.2022 um 14:13 schrieb Daniel Fuchs <daniel.fuchs at oracle.com>:
> 
> Hi Robert,
> 
> On 10/06/2022 11:54, Robert Stupp wrote:
>> Does anyone recall why HTTP/308 was not implemented that time? I suspect that HTTP/308 was just not a thing 14/15 years ago, but no clue whether it’s just not been implemented all the time or whether there was a reason to not handle it at all in HttpURLConnection. I could not find anything useful in the OpenJDK commit log nor in the OpenJDK JIRA (there was a ticket about the Webstart client).
> 
> The history you can observe probably dates back to the time when
> Java was open sourced, but the networking code is probably older
> than that.
> 
> I would guess that 308 was never implemented.
> Do you have an account for https://bugs.openjdk.org/ ?
> If you do please log an RFE (component core-libs, subcomponent
> java.net) and we will evaluate it. Otherwise you can log
> it through https://bugreport.java.com/
> 
> I see that 308 is not very different from 301 except that it
> explicitly prevents turning a POST into a GET on redirection - so
> there may be several places to tweak in the HttpURLConnection code
> if we decided to implement this.
> 
> best regards,
> 
> -- daniel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20220613/a0ddd622/attachment.htm>


More information about the net-dev mailing list