Top "Okhttp" questions

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

javax.net.ssl.SSLPeerUnverifiedException: Hostname not verified:

I am trying to use HTTPS connection with self-signed certificate. I have followed steps of creating self-signed certificate as mentioned …

java android ssl https okhttp
Now that SSLSocketFactory is deprecated on Android, what would be the best way to handle Client Certificate Authentication?

I am working on an Android app that requires Client Certificate Authentication (with PKCS 12 files). Following the deprecation of all …

android ssl okhttp pkcs#12 sslsocketfactory
OkHttp - Enable logs

I used Retrofit in order to make HTTP requests and JSON parsing and I loved the way to turn on …

android web-services http okhttp
How to make "inappropriate blocking method call" appropriate?

I am currently trying to leverage kotlin coroutines more. But I face a problem: when using moshi or okhttp inside …

kotlin okhttp kotlin-coroutines moshi
Retrofit - Too many follow-up requests: 21

I'm using retrofit to make requests. I've got following error: java.net.ProtocolException: Too many follow-up requests: 21 The code is …

android retrofit okhttp cookiemanager
Retrofit POST request w/ Basic HTTP Authentication: "Cannot retry streamed HTTP body"

I'm using Retrofit to do a basic POST request, and I'm providing a basic @Body for the request. @POST("/rest/…

android http-authentication retrofit okhttp
Android Retrofit2 Refresh Oauth 2 Token

I am using Retrofit and OkHttp libraries. So I have Authenticator which authanticate user if gets 401 response. My build.gradle …

android oauth-2.0 retrofit2 okhttp
Retrofit - Okhttp client How to cache the response

I'm trying to cache the response of http calls done by Retrofit(v 1.9.0) with OkHttp(2.3.0). It always made the network …

java android retrofit cache-control okhttp
Getting Request body content using Retrofit 2.0 POST method

I have a requirement to get a request body and to perform some logic operations with Retrofit 2.0 before doing enque …

android request okhttp retrofit2 jsonresponse
Retrofit - Intercept responses globally

I'd like to intercept all responses received by the retrofit engine, and scan for HTTP error code, for example error 403. …

android retrofit okhttp