PHP Warning: file_get_contents failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request
===

I am Getting following error "Warning: file_get_contents  failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request " while hitting "http://Google.com"

     <?php
            $content = file_get_contents("http://www.google.com");
            if (strpos($http_response_header[0], "200")) { 
             echo "SUCCESS";
           } 
           else { 
                  echo "FAILED";
                }
       ?>

because of this problem i am not able to parse the URL .I am using WAMP(Apache Version-2.2.22,PHP version 5.4.3).

Steps taken :-
1.allow_url_fopen Enabled in php.ini
2.Tried Encoding the URL
3.Even Used Curl php function getting same problem.
4.Allowed Firewall on

Please help.



