Getting HTTP Status Code from multiple URLs using curl_multi?
Alright, so I'm using curl_multi_* to connect to various sites simultaneously. How would I return the HTTP Status Code to开发者_运维技巧 a variable for comparison?
You need to pass the request id through curl_getinfo and you'll get back an array containing a key of http_code.
精彩评论