How can I capture the IP used by cURL in Guzzle? How can I capture the IP used by cURL in Guzzle? curl curl

How can I capture the IP used by cURL in Guzzle?


Use curl_getinfo($ch, CURLINFO_PRIMARY_IP) or look in the "primary_ip" key/value of curl_getinfo($ch).

What's your PHP version? You must be using an old version.