奉献出一个封装的curl函数,便于调用 复制代码 代码如下: function curl($url, $ifpost = 0, $datafields = ”, $cookiefile = ”, $v = false) { $header = array(“Connection: Keep-Alive”,”Accept: text/html, application/xhtml+xml, */*”, “Pragma: no-cache”, “Accept-Language: zh-Hans-CN