|
@@ -127,8 +127,11 @@ function curl_get($url)
|
|
|
function curl_post($url,$post_data)
|
|
|
{
|
|
|
|
|
|
+
|
|
|
+ array_push($headers, "Content-Type".":"."application/json");
|
|
|
$ch = curl_init();
|
|
|
|
|
|
+ curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
|
|
curl_setopt($ch, CURLOPT_URL, $url);
|
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
|
|
|
|
@@ -141,7 +144,6 @@ function curl_post($url,$post_data)
|
|
|
|
|
|
curl_close($ch);
|
|
|
return json_decode($response,true);
|
|
|
-
|
|
|
}
|
|
|
|
|
|
|