From 5cc44a73e118cc356b81bc981984650141ad7caa Mon Sep 17 00:00:00 2001 From: gnieark Date: Sun, 12 Jun 2016 22:00:13 +0200 Subject: [PATCH] http code --- src/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/functions.php b/src/functions.php index b2320ef..a83cfe9 100644 --- a/src/functions.php +++ b/src/functions.php @@ -348,9 +348,11 @@ function get_IA_Response($iaUrl,$postParams){ 'Content-Type: application/json', 'Content-Length: ' . strlen($data_string)) ); + + $output= curl_exec($ch); $httpCode = curl_getinfo($ch); print_r($httpCode); - $output= curl_exec($ch); + curl_close($ch); if(! $arr = json_decode($output,TRUE)){ $arr=array();