CURLOPT_FOLLOWLOCATION

I searched google for more info. But the more I read, the more I get confused or surprised.

I understand what CURLOPT_FOLLOWLOCATION()follows "location", but what is location? Is this initialized url?

  curl_setopt($curl_connection, CURLOPT_FOLLOWLOCATION, false); 

I just need to send the data to the icontact mailing list - is this snippet above so that the data does not get on the mailing list?

I printed $resultand saw that the data was on the correct mailing list, although I can’t see if the data is correct, which is from the form.

+5
source share
2 answers

Quote from docs :

CURLOPT_FOLLOWLOCATION TRUE, ":", HTTP- ( , , PHP ":", , CURLOPT_MAXREDIRS).

URL- URL-. PHP :

header('Location: http://example.com/');

CURL URL , HTTP-. .

+13

CURL 30 HTTP- . true, "Location: <someurl>" HTTP- CURL , .

+4

All Articles