Thank you for the explanation. Since this is the new standard (RFC 9110), it makes sense for me to just disable redirect for the specific failing request(s) rather than change the client behavior.
________________________________ From: Oleg Kalnichevski <ol...@apache.org> Sent: Thursday, January 9, 2025 3:20 PM To: HttpClient User Discussion <httpclient-users@hc.apache.org> Subject: Re: Post redirect behavior in 5.4 On Thu, 2025-01-09 at 19:55 +0000, Hari Iyer wrote: > Hi, > I migrated httpClient to 5.4 from 4.5 and see a difference in post > redirect behavior. In 4.5, a post request does not automatically > follow a 302 response but it seems to do so in 5.4. Is this intended? Yes, it is. HttpClient 5.4 conforms to the latest HTTP specification (RFC 91xx) that differs in redirect behavior definition from older revisions of the specification. > It is not documented in the migration guide. How do I get back the > 4.5 behavior? Replace the standard RedirectExec interceptor with a custom one. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org