最基本的操作如下
= 'a=1&b=2'; =, CURLOPT_HTTPHEADER, ('X-FORWARDED-FOR:0.0.0.0', 'CLIENT-IP:0.0.0.0')); curl_setopt(, CURLOPT_REFERER, "http://www.baidu.com/"); curl_setopt(,CURLOPT_URL, 'http://www.baidu.com' curl_setopt (, CURLOPT_RETURNTRANSFER, 1, CURLOPT_TIMEOUT, 30, CURLOPT_POSTFIELDS, ); = curl_exec(); curl_close()