--TEST-- curl_setopt() call with CURLOPT_HTTPHEADER --CREDITS-- Paul Sohier #phptestfest utrecht --SKIPIF-- --FILE-- getMessage() . "\n"; } $curl_content = curl_exec($ch); curl_close($ch); var_dump( $curl_content ); $ch = curl_init(); ob_start(); // start output buffering curl_setopt($ch, CURLOPT_HTTPHEADER, array()); curl_setopt($ch, CURLOPT_URL, $host); $curl_content = curl_exec($ch); ob_end_clean(); curl_close($ch); var_dump( $curl_content ); ?> --EXPECT-- *** curl_setopt() call with CURLOPT_HTTPHEADER curl_setopt(): The CURLOPT_HTTPHEADER option must have an array value bool(false) bool(true)