arrays - php CURLE_URL_MALFORMAT error -
i trying thing doenst seem work out well.. outputs curle_url_malformat & no url set! how can fix this?..
it needs echo out text on page $link1
<?php $link1 = "http://www.lubbo-zone.nl/script2/?name=ichris."; $ch = curl_init(); $opts = [ 'curlopt_returntransfer' => 1 , 'curlopt_url' => "{$link1}"]; curl_setopt_array($ch , array($opts)); $response = curl_exec($ch); echo curl_errno($ch) . '<br/>'; echo curl_error($ch) . '<br/>'; var_dump($response); ?>
i used this, gets me response server, page says checking browser, after seconds redirect other url.
so, i'm pretty sure you're setting options in wrong way.
$link1 = "http://www.lubbo-zone.nl/script2/?name=ichris."; $ch = curl_init(); curl_setopt($ch, curlopt_url, $link1); curl_setopt($ch, curlopt_header, 0); curl_setopt($ch, curlopt_returntransfer, 1); $response = curl_exec($ch); echo curl_errno($ch) . '<br/>'; echo curl_error($ch) . '<br/>'; var_dump ($response);
this get
Comments
Post a Comment