Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<blockquote> <p>If I set HttpClientParams.setRedirecting(params, false); Then the page returns "Temporary broken link fixed"</p> </blockquote> <p>It sounds like you're sending your request to an <code>http://</code> URL and counting on a redirection (possibly via <code>mod_rewrite</code> or something similar such as a redirection in the PHP code itself) to turn your page into <code>https</code>.</p> <p>This mode of operation first makes the plain HTTP request to the server, which then tells the client that the resource has moved to the <code>https://</code> address. In turn, if the automatic redirection is activated, the client makes a second request.</p> <p>According to <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.2" rel="nofollow noreferrer">the HTTP specification, for status codes 301 or 302</a> (which are used for the redirection),</p> <blockquote> <p>If the 301/302 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.</p> </blockquote> <p>Most browsers interpret this as "if the first request was a POST, don't re-send the data for the redirected request, but make the second request a GET anyway." This would explain why you lose any POSTed body for the second attempt.</p> <p>Note that, for the reasons explained in <a href="https://stackoverflow.com/a/9105894/372643">this answer</a>, over-reliance on rewrite/redirects to turn an <code>http://</code> request into an <code>https://</code> request should be considered bad practice.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload