摘要: public static function curlPost($url, $data=array()) { $ch = curl_init(); if (is_array($data) && $data) { $formdata = http_build_query($data); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $formdata); } curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CU... 阅读全文
posted @ 2013-10-31 13:40 kwishly 阅读(199) 评论(0) 推荐(0) 编辑