Vou tentar ser o mais claro possível. Possuo uma função em php utilizando cURL que busca imagens de 3 captchas diferentes. No meu servidor local para testes (xampp) consigo receber as 3 imagens sem problemas, tudo funciona. No servidor remoto, eu recebo duas das imagens, a terceira não tem como, já tentei de tudo. function recebe_imagem($url, $arquivo, $cookiej="") {
$ch = curl_init ($url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiej);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_BINARYTRANSFER,1);
$data=curl_exec($ch);
curl_close ($ch);
$fp = fopen($arquivo,'w');
fwrite($fp, $data);
fclose($fp);
return $arquivo;
} Se alguém puder me ajudar ficarei muito agradecido. Obrigado!