View Full Version : External URL Request

08-22-2011, 05:24 PM
I have a list of e-mail addresses which I want to unsubscribe (example.com replaces our real url):

foreach ($final_list as $value){
$ch = curl_init($url1);
curl_setopt($ch, CURLOPT_HEADER, 0);

Is this the best way to do this? I'm getting some garbled text on the return value. Is there a way to send the request without getting a return value?

08-22-2011, 09:42 PM
I'm not sure how the CURL functions work. What I use if I need to send a request like this is the include() function, though it requires output buffering to handle/ignore the output/return value of the request.