Top "Okhttp3" questions

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

Logging with Retrofit 2

I'm trying to get the exact JSON that is being sent in the request. Here is my code: OkHttpClient client = …

java retrofit retrofit2 okhttp3
java.net.SocketTimeoutException: timeout

With OkHttp library, application is facing following SocketTimeoutException issue. If request size is less, then it is working fine(Less …

java android httpurlconnection okhttp3
Automatic cookie handling with OkHttp 3

I am using okhttp 3.0.1. Every where I am getting example for cookie handling that is with okhttp2 OkHttpClient client = new …

cookies okhttp3
Okhttp3 - RequestBody.create(contentType, content) Deprecated

I did not find any example of how to replace the deprecation method. The examples on the okhttp3 main page …

java okhttp okhttp3
OkHttp proxy settings

I have to setup a proxy to send a JSON using POST, using proxyHost and proxyPort. public static final MediaType …

java json post proxy okhttp3
java.net.SocketTimeoutException in okhttp

Here it takes so much time to get data from json. When deleted and again installed it will get json …

android json okhttp socketexception okhttp3
OkHttp: avoid leaked connection warning

I am using OkHttp 3, and I keep getting leaked connection warnings: WARNING: A connection to https://help.helpling.com/ was …

java memory-leaks okhttp3
Image upload using okHttp

i want to upload image using okhttp but i am not able to find MultipartBuilder for Post Image.What can …

android image upload okhttp3
How to send post parameters dynamically (or in loop) in OKHTTP 3.x in android?

I am using OKHTTP 3.x version. I want to post multiple parameters and would like to add the params in …

android okhttp3
NoClassDefFoundError: Failed resolution of: Lokhttp3/internal/Platform

I'm using Retrofit2 library. I already tried to update latest version : Retrofit2, Gson, Rxjava, OKHttp, HttpLoggingInterceptor ... in build.gradle file …

java android retrofit2 okhttp3