From 6dc6392017611c591d7dd7759912e0a4c4b8d863 Mon Sep 17 00:00:00 2001 From: Marcin Zelent Date: Fri, 24 Nov 2017 11:01:03 +0100 Subject: Update NewDataController.php --- src/AppBundle/Controller/NewDataController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/AppBundle/Controller') 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 +} -- cgit v1.2.3