Answer the question
In order to leave comments, you need to log in
301 Moved Permanently. How to process?
I am new to the web. With a simple GET I take the page.
Returns "301 Moved Permanently"
How to process? Where can I get the page that was redirected to? How to process this redirect in general?
Answer the question
In order to leave comments, you need to log in
Example when requesting " google.ru ":
HTTP/1.1 301 Moved Permanently
Location: www.google.ru/
Fetch the page with curl, use
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question