"; ob_end_clean(); $return_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); // return array($return_code, $return_content); return $return_content; } $url = "https://www.masada.com.tw/test1/test1/receive.php"; $data = json_encode(array('a'=>"weqweqwe", 'b'=>2)); //list($return_code, $return_content) = http_post_data($url, $data); $aaa = http_post_data($url, $data); print_r($aaa); ?>