epoitier opened a new issue, #6080:
URL: https://github.com/apache/jmeter/issues/6080

   ### Expected behavior
   
   When a HTTP server send back a 307 redirection from an original POST method, 
the user agent need to keep the same method when processing the redirection 
   
   ### Actual behavior
   
   The 307 redirection from a POST request is managed but the method used 
during the redirection is not a POST anymore. As mentioned in the 
RFC9110#15.4.8, the redirection is not done according to the rules below:
   
   **15.4.8. 307 Temporary Redirect**
   
   The 307 (Temporary Redirect) status code indicates that the target resource 
resides temporarily under a different URI and the user agent MUST NOT change 
the request method if it performs an automatic redirection to that URI. Since 
the redirection can change over time, the client ought to continue using the 
original target URI for future requests.
   The server SHOULD generate a Location header field in the response 
containing a URI reference for the different URI. The user agent MAY use the 
Location field value for automatic redirection. The server's response content 
usually contains a short hypertext note with a hyperlink to the different 
URI(s).
   
   ### Steps to reproduce the problem
   
   Create a HTTP Request sampler targeting a server sending back a 307 
redirection.
   
   ### JMeter Version
   
   5.6
   
   ### Java Version
   
   openjdk version "11.0.16.1" 2022-08-12 LTS
   
   ### OS Version
   
   Microsoft Windows [version 10.0.22621.2283]


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to