curl


从阿里云上curl请求微信支付namelookup_time时间太长,怎么办

用的阿里云的服务器,curl去请求微信的支付的时候,响应时间过长,就打印了请求的curl_getinfo,结果如下图,可以看到total_time 3.7多秒,而namelook_time用了3.5多秒. 怎么回事,怎么减少namelook的时间?
17年4月26日 阅读 (3962) 有用 (42)

php curl 如何伪造发送 referer

php curl 的方法 curl_setopt ( resource $ch , int $option , mixed $value ), 参数 $option 可选 CURLOPT_REFERER, CURLOPT_REFERER 对应的 $value 就是在HTTP请求...
17年2月12日 阅读 (2062) 有用 (7)