PHP Consuming RESTful APIs Fetching an HTTPS URL - Supercoders | Web Development and Design | Tutorial for Java, PHP, HTML, Javascript PHP Consuming RESTful APIs Fetching an HTTPS URL - Supercoders | Web Development and Design | Tutorial for Java, PHP, HTML, Javascript

Breaking

Post Top Ad

Post Top Ad

Thursday, June 20, 2019

PHP Consuming RESTful APIs Fetching an HTTPS URL

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

Post Top Ad