Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法加载需要身份验证的网页 #11

Closed
ghost opened this issue May 25, 2018 · 4 comments
Closed

无法加载需要身份验证的网页 #11

ghost opened this issue May 25, 2018 · 4 comments

Comments

@ghost
Copy link

ghost commented May 25, 2018

老哥我发现有些需要身份验证的网页是无法加载的,比如这个:https://ph.6632888.com/ph2.html
用Safari是可以的,不知道是什么原因,还望指教,蟹蟹啦。

@zhongwuzw
Copy link
Owner

zhongwuzw commented May 25, 2018

@whatsbug 这个网页用了basicAuthentication,UIWebView默认是无法弹出输入用户名、密码的弹窗。
我提交了一个测试commit,增加了basicAuthentication 功能。

@ghost
Copy link
Author

ghost commented May 28, 2018

谢谢老哥指教。还有我想问问为啥你一下子就能定位问题出在那里,如果我想拥有你这样的能力我该掌握哪方面的知识呢?我之前自己尝试过Google“UIWebView 授权”和“UIWebView HTTPS 认证”之类的关键词,但还是没有头绪。直到现在我看了你的代码,我还是看不懂。是不是请求某些特定网页,后端会要求进行某种授权?除了这种授权是否还存在其他授权之类的?这是不是已经涉及到后端相关的知识了

@zhongwuzw
Copy link
Owner

@whatsbug ,建议学习一下HTTP协议认证的部分,这些都是由后端控制的。

@ghost
Copy link
Author

ghost commented May 29, 2018

好的~ 三克油。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant