Jump to content

[SOLVED] cURL supressing output?


cooldude832

Recommended Posts

I'm trying to run a cURL to retrieve the curl_getinfo array for database purposes and my problem is its displaying all the cURL output of the url how do I prevent this?

<?php
		$ch = curl_init();
				curl_setopt ($ch, CURLOPT_URL,$_POST['url']);
				curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6");
				curl_setopt($ch,CURLOPT_VERBOSE,1);
				curl_exec($ch);
				#print_r(curl_getinfo($ch));	
?>

Link to comment
https://forums.phpfreaks.com/topic/115091-solved-curl-supressing-output/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.