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

如何访问已经禁止ip访问的网站? #50

Open
ctinusDev opened this issue Jun 13, 2017 · 3 comments
Open

如何访问已经禁止ip访问的网站? #50

ctinusDev opened this issue Jun 13, 2017 · 3 comments

Comments

@ctinusDev
Copy link

使用NSURLProtocol代理了UiWebView的请求,用HappyDNS将url的host转换成了ip,但是有些服务器设置了禁止ip访问,所以直接返回了404,问下有没有什么解决办法???

@MolierQueen
Copy link

对啊 怎么搞?

@ctinusDev
Copy link
Author

已经解决了,在HttpHeaderField中把Host设置为原始的host

@MolierQueen
Copy link

不行 你试试 qq 163 hao123 这几个无论你怎么改都不行

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

No branches or pull requests

2 participants