Top "Okhttp" questions

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

Retrofit ETAG and Caching

Is there a proper explanation on how to add caching and ETAG/If-None-Match support to Retrofit+OkHttp? I'm struggling to …

android retrofit okhttp etag
MobileFirst 8 - WLResourceRequestPlugin Error - Incorrect JWT format

I have a big issue with mobilefirst, when I try to call a protected resource I have this issue: The …

cordova ibm-mobilefirst okhttp mobilefirst-adapters mobilefirst-server
How to convert the response from Okhttp into inputstream

CODE: public static String getRequestNoPayload(String urlString, String loginApi, String mUsername) throws Exception { Response response; try{ client.setConnectTimeout(20, TimeUnit.SECONDS); // …

android inputstream okhttp
java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.NETWORK

java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.NETWORK Hi i got this error while i am …

ssl retrofit okhttp sslsocketfactory trustmanager
How can I verify the content of a POST Body with MockWebServer?

I have several unit tests that use Squares OkHttps MockWebServer. The tests run all fine, and everything works very well. …

junit junit4 okhttp retrofit2 mockwebserver
Retrofit: Redirect to LoginActivity if response code is 401

How to start LoginActivity from the interceptor(non-activity class)? I have tried the code (Interceptor) below but not working for …

java android retrofit retrofit2 okhttp
How to handle auth0 403 error without adding specific code everywhere (Retrofit/okhttp/RxAndroid)

I am using Auth0, which gives me a JWT (json web token) and a refreshtoken. I use this JWT in …

android retrofit rx-java okhttp auth0
Okhttp NoClassDefFoundError

I am using OkHttp 2.0.0 jar in my android application on eclipse. As OkHttp is now dependent on Okio library, I …

android noclassdeffounderror okhttp okio
SocketTimeoutException android retrofit

I am building a restful client using retrofit in my android app, however i am struggling with an exception while …

android retrofit2 okhttp socket-timeout-exception
Chrome DevTools broken - Stetho unusable

Stetho and Google Chrome DevTools have become unusable after a macOS update (I doubt that macOS update is the origin …

android google-chrome google-chrome-devtools okhttp stetho