0

I am trying to use IP address to get file_get_contents

  $url = "http://82.33.33.100:8001"; // Ip address, it example IP address. ( not correct ip address here)
    $data =file_get_contents($url);

I am getting following error:

failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /var/www/html/test.php on line 10

I installed Apache on Ubuntu. If I use google.com and it's working fine. If I use CURL I got NO ROUTE Error.

Any idea?

PJProudhon
  • 835
  • 15
  • 17
Ankita Kashyap
  • 517
  • 6
  • 20

0 Answers0