{ "failNum":"0", "time":"20170410103836", "successNum":"1", "msgId":"17041010383624511", "errorMsg":"", "code":"0" }
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://eolink.o.apispace.com/sms-code/verifycode", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "msg=%E3%80%90Eolinker%E3%80%91%E6%82%A8%E7%9A%84%E9%AA%8C%E8%AF%81%E7%A0%81%E6%98%AF%EF%BC%9A%7B%24var%7D%EF%BC%8C5%E5%88%86%E9%92%9F%E5%86%85%E6%9C%89%E6%95%88%E3%80%82%E5%A6%82%E9%9D%9E%E6%9C%AC%E4%BA%BA%E6%93%8D%E4%BD%9C%EF%BC%8C%E8%AF%B7%E5%BF%BD%E7%95%A5%E3%80%82¶ms=15800000000%2C1234%3B13800000000%2C4321&sendtime=&report=false&extend=&uid=", CURLOPT_HTTPHEADER => array( "X-APISpace-Token:7khd6tpq2kn56recq3nh3kwyko7hfn6l", "Authorization-Type:apikey", "Content-Type:application/json" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }