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