this might work, give it a shot.
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); // Set so curl_exec returns the result instead of outputting it. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Get the response and close the channel. $response = curl_exec($ch); curl_close($ch);
for more info, check http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-sites/
Related Posts:
- How to find out if you’re using HTTPS without $_SERVER[‘HTTPS’]
- How can I force users to access my page over HTTPS instead of HTTP?
- How to force Laravel Project to use HTTPS for all routes?
- Redirecting from HTTP to HTTPS with PHP
- file_get_contents() how to fix error “Failed to open stream”, “No such file”
- How to set 777 permission on a particular folder? [closed]
- Visual list of all installed fonts with respective pangram phrase?
- How to log in to phpMyAdmin with WAMP, what is the username and password?
- regex match any whitespace
- PHP page redirect
- Fatal error: Call to undefined function mysql_connect()
- How do I resolve a HTTP 414 “Request URI too long” error?
- xajax expanding list query
- Data source name not found, and no default driver specified
- Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, object given in
- How do I redirect a page in jQuery?
- mcrypt is deprecated, what is the alternative?
- How to echo or print an array in PHP?
- Fatal error: Call to undefined function mysqli_connect()
- Illegal string offset Warning PHP
- What’s the purpose of ini_set() in php? (especially for error reporting)
- Send email with PHP from html form on submit with the same script
- PDO bindParam() with prepared statement isn’t working
- HTML Element Array, name=”something[]” or name=”something”?
- Why use $_SERVER[‘PHP_SELF’] instead of “”
- Setting up a PHP interpreter in PhpStorm
- Forbidden :You don’t have permission to access /phpmyadmin on this server
- PHP: $_SERVER variables: $_SERVER[‘HTTP_HOST’] vs $_SERVER[‘SERVER_NAME’]
- Fatal error: Call to undefined function mysqli_connect()
- Could not open input file: artisan
- Why php tag is not working in html file?
- What’s the use of ob_start() in php?
- PHP: variables in strings without concatenation
- What is the difference between the ‘www’ folder and ‘htdocs’ folder?
- Notice: Trying to get property of non-object error
- undefined offset PHP error
- Call to undefined function mysql_query() with Login
- What is Options +FollowSymLinks?
- PHP mail not working for some reason
- Call to undefined method mysqli_stmt::get_result
- Get Root Directory Path of a PHP project
- Returning JSON from PHP to JavaScript?
- How to create cron job using PHP?
- Imploding an associative array in PHP
- curl POST format for CURLOPT_POSTFIELDS
- Can’t use method return value in write context
- PHP get domain name
- How to solve “Fatal error: Class ‘MySQLi’ not found”?
- Running a Python script from PHP
- Object of class DateTime could not be converted to string
- HTTP Error 411, The request must be chunked or have a content length
- Prioritize Visible Content WordPress
- mysqli::query(): Couldn’t fetch mysqli
- Unexpected Exception: SQLSTATE[HY000] [1045] Access denied for user ****@’localhost’ (using password: YES)
- Fatal error: Call to undefined function sqlsrv_connect()
- NotFoundHttpException in RouteCollection.php line 161: in laravel 5
- Easy way to password-protect php page
- Html encode in PHP
- file_put_contents: Failed to open stream, no such file or directory
- PHP $_POST not working?
- PHP cURL HTTP PUT
- Convert timestamp to readable date/time PHP
- PHP sessions that have already been started
- Contact Form 7 – Custom Validation
- How to output JavaScript with PHP
- file_get_contents(“php://input”) or $HTTP_RAW_POST_DATA, which one is better to get the body of JSON request?
- WRONGTYPE Operation against a key holding the wrong kind of value php
- What is the advantage of using try {} catch {} versus if {} else {}
- Check if URL has certain string with PHP
- Subtracting days, months or years from date using php
- Laravel – Model Class not found
- Fatal error: Call to a member function fetch_assoc() on a non-object
- What is unexpected T_VARIABLE in PHP?
- How to close Browser Tab After Submitting a Form?
- Strict Standards: Only variables should be assigned by reference PHP 5.4
- mysqlworkbench giving version error on exporting database
- Steam Market API?
- How to make DROP INDEX IF EXISTS for mysql?
- get type in php returns “object” and not the object type
- PHP array delete by value (not key)
- PHP mail: Multiple recipients?
- Having a problem getting mysqli_query to execute
- PHP Multiple Checkbox Array
- Session variables not working php
- Get JSON object from URL
- How can I parse a JSON file with PHP? [duplicate]
- Object of class stdClass could not be converted to string
- How to get URL of current page in PHP
- How to push both value and key into PHP array
- WordPress visual composer not loading
- Find the last element of an array while using a foreach loop in PHP
- What does “zend_mm_heap corrupted” mean
- Popup window in PHP?
- How can you use php in a javascript function
- How to bypass (deprecated) reCAPTCHA V1?
- Start and stop a timer PHP
- PHP variables don’t evaluate in the query [duplicate]
- Adding days to $Date in PHP
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ””)’ at line 2
- How can I fix the mixed content problems of the kk star ratings plugin?