diff options
Diffstat (limited to 'src/AppBundle/Controller/NewDataController.php')
| -rw-r--r-- | src/AppBundle/Controller/NewDataController.php | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/AppBundle/Controller/NewDataController.php b/src/AppBundle/Controller/NewDataController.php index 1aacccc..2e083d9 100644 --- a/src/AppBundle/Controller/NewDataController.php +++ b/src/AppBundle/Controller/NewDataController.php @@ -23,7 +23,7 @@ class NewDataController extends Controller      {          // Get cURL resource          $curl = curl_init(); -        curl_setopt($curl, CURLOPT_URL, "http://pollutometerapi.azurewebsites.net/api/Readings/latest"); +        curl_setopt($curl, CURLOPT_URL, "https://pollutometerapi.azurewebsites.net/api/Readings/latest");          curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-type: application/json')); // Assuming you're requesting JSON          curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);          // Send the request & save response to $resp @@ -42,4 +42,4 @@ class NewDataController extends Controller      } -}
\ No newline at end of file +} |