Php cURL Queries
Posted: Thu Jun 23, 2011 6:16 am
i have a silly problem.. i have this code
everything works except the fact that thewhen echoed has True + URL but they are concatenated which sucks because
i dont know where the True is coming from and i cant use a header redirection when True is in front of the URL. i know i could remove the true from front but
that is a hack there has to be a reason why i am getting this value instead of the desired one. Can anyone helpppp?? THANKYOU
Code: Select all
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $finalURL);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close($ch);Code: Select all
$result i dont know where the True is coming from and i cant use a header redirection when True is in front of the URL. i know i could remove the true from front but
that is a hack there has to be a reason why i am getting this value instead of the desired one. Can anyone helpppp?? THANKYOU