From b1aa3df279dd322a13922985d42416f2f331206f Mon Sep 17 00:00:00 2001 From: "altob.rd" Date: Tue, 16 Jan 2018 12:00:38 +0800 Subject: [PATCH] upd --- coworker/call_something_daily.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/coworker/call_something_daily.php b/coworker/call_something_daily.php index 09cea8a..aaeb1d1 100644 --- a/coworker/call_something_daily.php +++ b/coworker/call_something_daily.php @@ -28,10 +28,8 @@ function post_data($url, $data) $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); - curl_setopt($ch, CURLOPT_HEADER, FALSE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); - curl_setopt($ch, CURLOPT_POST, FALSE); + curl_setopt($ch, CURLOPT_POST, TRUE); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT ,10); curl_setopt($ch, CURLOPT_TIMEOUT, 10); //timeout in seconds $output = curl_exec($ch);