Getting HTTP status code from multiple URLs using curl_multi?

Ok, so I use curl_multi_ * to connect to different sites at the same time. How to return HTTP status code to a variable for comparison?

+6
php curl
source share
1 answer

You need to pass the curl_getinfo request id , and you will get an array containing the http_code key.

+6
source

All Articles