F
F
fuckthedark2016-09-13 11:21:22
Android
fuckthedark, 2016-09-13 11:21:22

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

1 answer(s)
A
aol-nnov, 2016-09-13
@aol-nnov

https://github.com/square/okhttp/issues/936inb4
: no solution there :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question