![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
其他
小白+1
这个作者很懒,什么都没留下…
展开
-
PHP curl使用代理ip请求
话不多说,直接上代码 $url = "https://www.xxx.com"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); //请求url地址 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //设置获取页面内容 curl_setopt($ch, CURLOPT_HEADER, 0); //不设置头部 curl_setopt($ch, CURLOPT_PROXY, '原创 2020-05-21 15:40:56 · 5607 阅读 · 0 评论 -
js获取ip位置
js获取ip位置引入搜狐ip接口<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>js获取ip及位置 // 访问IP var ip = returnCitySN["cip"]; // IP位置 var area = returnCitySN["cname"]; ...原创 2019-02-20 16:20:34 · 721 阅读 · 0 评论