I looked up google for more information. But the more I read, the more I am confused or wonder
I understand that CURLOPT_FOLLOWLOCATION() follows “the location”, but what is the location? Is it the url that is initialized?
curl_setopt($curl_connection, CURLOPT_FOLLOWLOCATION, false);
I only need to post data into icontact mailing list – so would this snippet above prevent the data from going in the mailing list?
I printed $result and see that the data went in the correct mailing list although I cannot see whether the data are the correct ones which are from form.
Quoting from docs:
When you request a URL, you can sometimes be redirected to some other URL. In PHP it’d be done with:
This directive instructs CURL to load that URL instead of the original one, as HTTP mandates. There’s normally no good reason to disable it.