cURL 'malformed url' cURL 'malformed url' curl curl

cURL 'malformed url'


I get the output of the page when running

curl http://profile.myspace.com/index.cfm?fuseaction=user.viewProfile&friendID=39726387

This also works for me:

$ch = curl_init('http://profile.myspace.com/index.cfm?fuseaction=user.viewProfile&friendID=39726387');curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);$out = curl_exec($ch);curl_close($ch);echo $out;

Edit: Just tried your code posted and it works fine for me. Perhaps the string you are passing into get_web_page() is wrong?