Søg i Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Læs mere

POST action turns into a GET, which is incorrect.

  • 1 svar
  • 1 har dette problem
  • 5 visninger
  • Seneste svar af TyDraniu

more options

Using Apache2 to serve web pages.

Debian Linux 5.10.0-8-amd64 #1 SMP Debian 5.10.46-2 (2021-07-20) x86_64 GNU/Linux

The following appears in the access.log:-

127.0.0.1 - - [28/Jul/2021:15:17:42 +1000] "POST /scripts_php/memb_login.php HTTP/1.1" 302 314 "http://dev.webtest.info/htmlpages/login.html" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0" 127.0.0.1 - - [28/Jul/2021:15:17:42 +1000] "GET /scripts_php/memb_login.php HTTP/1.1" 200 499 "http://dev.webtest.info/htmlpages/login.html" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"

The form method is POST and the action is to call a PHP script which expects a POST array. The "302 314" appears to be correct, but, a GET is returned immediately.

According to w3.org:-

Note: RFC 1945 and RFC 2068 specify that the client is not allowed

     to change the method on the redirected request.  However, most
     existing user agent implementations treat 302 as if it were a 303
     response, performing a GET on the Location field-value regardless
     of the original request method. The status codes 303 and 307 have
     been added for servers that wish to make unambiguously clear which
     kind of reaction is expected of the client.

This has just started to occur after a recent upgrade to Firefox. It might be caused by the browser but there might be some other explanation or configuration setting that needs tweaking. Could somebody please help.

Thanks.

Using Apache2 to serve web pages. Debian Linux 5.10.0-8-amd64 #1 SMP Debian 5.10.46-2 (2021-07-20) x86_64 GNU/Linux The following appears in the access.log:- 127.0.0.1 - - [28/Jul/2021:15:17:42 +1000] "POST /scripts_php/memb_login.php HTTP/1.1" 302 314 "http://dev.webtest.info/htmlpages/login.html" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0" 127.0.0.1 - - [28/Jul/2021:15:17:42 +1000] "GET /scripts_php/memb_login.php HTTP/1.1" 200 499 "http://dev.webtest.info/htmlpages/login.html" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0" The form method is POST and the action is to call a PHP script which expects a POST array. The "302 314" appears to be correct, but, a GET is returned immediately. According to w3.org:- Note: RFC 1945 and RFC 2068 specify that the client is not allowed to change the method on the redirected request. However, most existing user agent implementations treat 302 as if it were a 303 response, performing a GET on the Location field-value regardless of the original request method. The status codes 303 and 307 have been added for servers that wish to make unambiguously clear which kind of reaction is expected of the client. This has just started to occur after a recent upgrade to Firefox. It might be caused by the browser but there might be some other explanation or configuration setting that needs tweaking. Could somebody please help. Thanks.

Alle svar (1)

more options

Hi, can you file a bug on https://bugzilla.mozilla.org/enter_bug.cgi ? Thanks.