Answer the question
In order to leave comments, you need to log in
How to handle 307 redirect in okhttp?
When working with the server, it is required to process redirects.
property followRedirects(true), followSslRedirects(true) do not solve the problem.
client = new OkHttpClient.Builder()
.cookieJar(new JavaNetCookieJar(cookieHandler))
.followRedirects(true)
.followSslRedirects(true)
.build();
How can I implement redirects on android when working with api?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question