Home > Backend Development > PHP Tutorial > fsockopen不能正确获取网页,返回403异常

fsockopen不能正确获取网页,返回403异常

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 11:44:57
Original
1382 people have browsed it

fsockopen不能正确获取网页,返回403错误
php的fsockopen函数能正常获取其他网页,但获取http://check.ptlogin2.qq.com/check?regmaster=&uin=369872340&appid=549000912&js_ver=10049&js_type=1&login_sig=4aNczek7pQ2h04JL8nS0xfDqPQsJ-oF5czyfk1lOAY47-HswQg3rmElsCZ6QIAyO&u1=http%3A%2F%2Fqzs.qq.com%2Fqzone%2Fv5%2Floginsucc.html%3Fpara%3Dizone&r=0.42962526359176423
时却是403错误。

服务器是假设在本机的,本机能正常访问该页,可见排除被该网站封IP的可能。怀疑是fsockopen的问题

想问问高手们能不能用fsockopen函数正确获得该网页,望多多赐教啊!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template