Top "Okhttp" questions

An HTTP+HTTP/2 client for Android and Java applications.

How to use OKHTTP to make a post request?

I read some examples which are posting jsons to the server. some one says : OkHttp is an implementation of the …

java okhttp
How to set connection timeout with OkHttp

I am developing app using OkHttp library and my trouble is I cannot find how to set connection timeout and …

java timeout okhttp
OkHttp Post Body as JSON

So, back when I was using Koush's Ion, I was able to add a json body to my posts with …

android json http-post okhttp ion
CertPathValidatorException : Trust anchor for certificate path not found - Retrofit Android

I am creating an android application which uses https for communication with the server. I am using retrofit and OkHttp …

android ssl retrofit okhttp
Trusting all certificates with okHttp

For testing purposes, I'm trying to add a socket factory to my okHttp client that trusts everything while a proxy …

android ssl okhttp android-networking
How does OkHttp get Json string?

Solution: It was a mistake on my side. The right way is response.body().string() other than response.body.toString() …

java http okhttp embedded-jetty
How to add headers to OkHttp request interceptor?

I have this interceptor that i add to my OkHttp client: public class RequestTokenInterceptor implements Interceptor { @Override public Response intercept(…

java android http-headers retrofit okhttp
javax.net.ssl.SSLException: Read error: ssl=0x9524b800: I/O error during system call, Connection reset by peer

Our clients are starting to see 100s of these "SSLException error - Connection reset by peer" over the last couple …

android http ssl retrofit okhttp
Can't get OkHttp's response.body.toString() to return a string

I'm trying to get some json data using OkHttp and can't figure out why when i try logging the response.…

java android okhttp
Can Retrofit with OKHttp use cache data when offline

I'm trying to use Retrofit & OKHttp to cache HTTP responses. I followed this gist and, ended up with this …

java caching retrofit okhttp offline-caching