Home  >  Article  >  Backend Development  >  yahoo-mail - php curl 模拟登录 yahoo mail

yahoo-mail - php curl 模拟登录 yahoo mail

WBOY
WBOYOriginal
2016-06-06 20:50:162030browse

php curl 模拟登录 yahoo mail,curl post提交登录数据之后,得到的返回值是完整的html 说 “此页面要求您在所用浏览器上启用 Javascript 功能。” 而不是 应该返回的 json 数据。不知道怎么回事。有谁遇到这个问题么,怎么解决?

回复内容:

php curl 模拟登录 yahoo mail,curl post提交登录数据之后,得到的返回值是完整的html 说 “此页面要求您在所用浏览器上启用 Javascript 功能。” 而不是 应该返回的 json 数据。不知道怎么回事。有谁遇到这个问题么,怎么解决?

某项提交的参数不正确。各个POST parameter或HTTP header都有可能。

用Fiddler分析一下正常的提交流程吧。

yahoo mail api 先找找看有沒有

Statement:
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