I use multi curl to retrieve data from a remote site. My script is like
foreach ($urls as $i => $url) { $ch[$i] = curl_init($url['url']); curl_setopt($ch[$i], CURLOPT_TIMEOUT, 0); curl_setopt($ch[$i], CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch[$i], CURLOPT_CONNECTTIMEOUT, 0); curl_setopt($ch[$i], CURLOPT_SSL_VERIFYPEER, false); curl_multi_add_handle($multiCurlHandler, $ch[$i]); }
He returns me 403 in response.
Thanks in advance for suggestions and comments.
user925355
source share