1, CURLOPT_URL => $url, CURLOPT_POST => 4, CURLOPT_POSTFIELDS => $fields, CURLOPT_USERPWD => "$HTTPuser:$HTTPpass", CURLOPT_USERAGENT => 'Test-DNC-adder' )); # Send the request & save response to $resp $resp = curl_exec($curl); # Close request to clear up some resources curl_close($curl); if ($DB > 0) { echo "URL: $url\n"; } echo "$resp\n"; ?>