Jump to content

I can't read an https page content

- - - - -

  • Please log in to reply
1 reply to this topic

#1
Alhazred

Alhazred

    Learning Programmer

  • Members
  • PipPipPip
  • 99 posts
I need to read the content of an https page.
I'm trying to do that by using file_get_contents($url), but it says

failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request in C:\xampp\htdocs\prova.php on line 2

but the url is correct, if you put it into the address bar it will open a page.
Here is the URL:
https://graph.facebo...z3dvJ2_2WGBp_0k

I've also tried with cURL, but I get nothing.

How can I read the content of that page?

#2
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
  • Location:New York, NY
It works fine for me. Check that your configuration has https as a registered php stream [ by looking at the output of phpinfo() ]. My guess is that it does not.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users