79619199

Date: 2025-05-13 08:07:47
Score: 3
Natty:
Report link

When using curl it is better to check for all possible errors and finally try log the response to be sure that you got XML.

$resp = curl_exec($curl);
if($errno=curl_errno($curl)){
    echo "Connection error #$errno: ".curl_error($curl);
    die();
}
$info=curl_getinfo($curl);
if($info['http_code']>=400){
    echo "HTTP error {$info['http_code']}";
    die();
}
echo $resp;
//If you got normal XML here you can continue with parsing

Please show your XML to find out what's wrong with it.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please show your
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: Sergey Soltanov