HTTP/308 handling in HttpURLConnection

2022-06-10 Thread Robert Stupp
[moved from jdk-dev, additional information at the end] I just stumbled upon a behavior in HttpURLConnection.openConnectionCheckRedirects() regarding the HTTP redirect handling. The concrete situation was a http-to-https „upgrade“, when a load balancer responds with a HTTP 308 for requests aga

Re: HTTP/308 handling in HttpURLConnection

2022-06-10 Thread Daniel Fuchs
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 al