PHP CURL - get response text -


i making curl request external site. in response text message , boolean. want format message displayed in site, cannot access text. request code:

$ch = curl_init();            curl_setopt($ch,curlopt_url,'url goes here'); curl_setopt($ch,curlopt_post,count($_post)); curl_setopt($ch,curlopt_postfields,$fields_string);            $result = curl_exec($ch);  var_dump($result);     

the response "this response textbool(true)" - detects bool , cannot access text. there way access it? thanks

you need set option:

curl_setopt($ch, curlopt_returntransfer, true);  

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -