$url = "http://google.com/";
$ch = curl_init( $url );
curl_setopt( $ch, CURLOPT_POST, 1);
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt( $ch, CURLOPT_HEADER, 0);
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec( $ch );
if ($response === false) $response = curl_error($ch);
curl_close($ch);
echo $response;
//Local ได้ผลลัพธ์แบบนี้
<html><body><b>Http/1.1 Bad Request</b></body> </html>
//Server