Almost any working PHP programmer has faced having to use CURL to send raw HTTP requests, whether it\'s for credit card payment processing, nefarious screen scraping, or somethi
I find the CURLINFO_HEADER_OUT option to be very useful.
'; function dbg_curl_data($curl, $data=null) { static $buffer = ''; if ( is_null($curl) ) { $r = $buffer; $buffer = ''; return $r; } else { $buffer .= $data; return strlen($data); } }', htmlspecialchars(curl_getinfo($curl, CURLINFO_HEADER_OUT)), ''; echo '