We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
最近遇到一个问题 就是 一个URL 多次重定向,我该如何很方便的 取出 头中的重定向网址和 cookies
The text was updated successfully, but these errors were encountered:
先配置 不自动跟随重定向:
HTTP http = HTTP.builder() .config((OkHttpClient.Builder builder) -> { // 阻止自动重定向 builder.followRedirects(false); builder.followSslRedirects(false); }) .build();
然后在请求的响应头中就可以拿到 重定向地址了
Sorry, something went wrong.
No branches or pull requests
最近遇到一个问题 就是 一个URL 多次重定向,我该如何很方便的 取出 头中的重定向网址和 cookies
The text was updated successfully, but these errors were encountered: