Hi I have a server which has several virtual hosts set up on it.
I wanted to make a curl request to this server\'s ip using php. Also I wanted to make this request t
For HTTPS sites use CURLOPT_RESOLVE which exists in every PHP version since PHP 5.5.
CURLOPT_RESOLVE
Sample output:
* Added www.example.com:443:172.16.1.1 to DNS cache * Hostname www.example.com was found in DNS cache * Trying 172.16.1.1...