TGAS
当前位置:首页 > TGAS PHP编程
-
PHP编程之发送POST请求的三种实现方法
PHP教程2019-06-15
一:curl方式post发送数据的实例函数代码: function post($url, $post_data = '', $timeout = 5){ $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_POST, 1); if($post_data != ''){ curl_set