How can I get the destination URL using cURL?

You can use:

echo curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);

Leave a Comment