PHP Consuming RESTful APIs
Fetching an HTTPS URL
Problem
You want to retrieve a secure URL.
Solution
Use any of the techniques providing a URL that begins with https.
Discussion
As long as PHP has been built with the OpenSSL library, all of the functions that can retrieve regular URLs can retrieve secure URLs. Look for the “openssl” section in the output of phpinfo() to see if your PHP setup has SSL support.
No comments:
Post a Comment