I managed to get api to download on my site that provides https with a little php.
Basically, I am twisting the http site and storing the results on my domain page, which is https, so it works great for me.
I wrote a little function to make me work
<?php
# Full fragment
<?php // Defining the basic cURL function function curl($url) { $ch = curl_init(); // Initialising cURL curl_setopt($ch, CURLOPT_URL, $url); // Setting cURL URL option with the $url variable passed into the function curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); // Setting cURL option to return the webpage data $data = curl_exec($ch); // Executing the cURL request and assigning the returned data to the $data variable curl_close($ch); // Closing cURL return $data; // Returning the data from the function } echo $scraped_website = curl("http://www.example.com"); ?> enter code here
cfaulk
source share