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

作者你好,请问获取小说章节列表那个请求为什么我使用有问题? #2

Open
thunderning opened this issue Dec 24, 2017 · 2 comments

Comments

@thunderning
Copy link

我想要写一个类似于你这样的app,但是现在遇到一个问题,就是获取小说章节列表(/toc/:id?view=chapters)在app中使用总会返回503错误(用charlies看的),而我用postman以及你的app抓到的包都是对的,我只是在一个简单的app中直接用string来创建一个固定的请求都不行,但是其他的api都没问题,只有获取章节列表这个请求无论如何都是错的,请问你遇到过这种情况嘛?

@Noah37 Noah37 closed this as completed Dec 25, 2017
@Noah37 Noah37 reopened this Dec 25, 2017
@Noah37
Copy link
Owner

Noah37 commented Dec 25, 2017

可能是他们的服务器进行了校验,可以在请求头的UA中添加下面的内容试试

@thunderning
Copy link
Author

感谢,user-agent的问题

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