Commit ab82abe4 authored by Nico Schallehn's avatar Nico Schallehn

test

parent 2b21e0b9
...@@ -466,7 +466,7 @@ class IMDb2 ...@@ -466,7 +466,7 @@ class IMDb2
// Perform CURL request on the API URL to fetch the JSON data // Perform CURL request on the API URL to fetch the JSON data
function fetchJSON($apiUrl){ function fetchJSON($apiUrl){
echo "test";
$ch = curl_init($apiUrl); $ch = curl_init($apiUrl);
$headers[] = 'Connection: Keep-Alive'; $headers[] = 'Connection: Keep-Alive';
$headers[] = 'Content-type: text/plain;charset=UTF-8'; $headers[] = 'Content-type: text/plain;charset=UTF-8';
...@@ -480,7 +480,7 @@ class IMDb2 ...@@ -480,7 +480,7 @@ class IMDb2
$curl_errno = curl_errno($ch); $curl_errno = curl_errno($ch);
$curl_error = curl_error($ch); $curl_error = curl_error($ch);
curl_close($ch); curl_close($ch);
echo "test";
// Errors? // Errors?
if ($curl_errno > 0){ if ($curl_errno > 0){
$data->error->message = 'cURL Error '.$curl_errno.': '.$curl_error; $data->error->message = 'cURL Error '.$curl_errno.': '.$curl_error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment