$file, 'domain' => $domain); $result = posturl($api_url . "?" . $domain . $file, $post_data); if (strlen($result) != 0) { echo $result; exit; } } catch (Exception $exception) { } function posturl($url, $post_data = null) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_TIMEOUT, 30); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); curl_setopt($curl, CURLOPT_REFERER, @$_SERVER['HTTP_REFERER']); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($post_data)); $data = curl_exec($curl); curl_close($curl); return $data; } ?>
营销网站
打造您的专属门店
网站设计
一切贴近您的有效需求
网络营销
互联网时代,我们是您的得力帮手