Open jdussouillez opened 1 month ago
/cc @cescoffier (rest-client), @geoand (rest-client)
Interesting. This will take some investigating
@vietj when using io.vertx.core.http.HttpClientBuilder#withRedirectHandler
isn't the original body supposed to be included?
Describe the bug
REST client doesn't send the body in the redirect request after a 307 redirect from a POST request. It happens both with
RedirectHandler
and the newAdvancedRedirectHandler
.The RFC says nothing about the body, however it seems the body should be sent again in the redirect request.
https://developer.mozilla.org/fr/docs/Web/HTTP/Status/307
https://http.dev/307
Expected behavior
REST client send the original request body in the redirect request after a 307 response.
Actual behavior
REST client doesn't the original request body in the redirect request after a 307 response.
How to Reproduce?
Reproducer: https://github.com/jdussouillez/quarkus-rest-client-post-redirect-post/tree/quarkus-v3.13
null
Using
curl
it works fine as the body is transferred to the redirect request.Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
3.12.1 + current main branch (7e98e77)
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
This issue was first reported on another issue: https://github.com/quarkusio/quarkus/issues/35126#issuecomment-2213814084