Top "Okhttp" questions

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

Retrofit2 Authorization - Global Interceptor for access token

I'm trying to use Retrofit2, I want to add Token to my Header Like this: Authorization: Bearer Token but the …

android retrofit okhttp
Retrofit 2: Catch connection timeout exception

I have the following setup: final OkHttpClient okHttpClient = new OkHttpClient(); okHttpClient.setReadTimeout(5, TimeUnit.SECONDS); okHttpClient.setConnectTimeout(5, TimeUnit.SECONDS); RestAdapter.Builder …

android retrofit connection-timeout okhttp
How to retry HTTP requests with OkHttp/Retrofit?

I am using Retrofit/OkHttp (1.6) in my Android project. I don't find any request retry mechanism built-in to either of …

android retrofit okhttp
Does OkHttp support accepting self-signed SSL certs?

I'm working for a customer who has a server with self-signed SSL cert. I'm using Retrofit + CustomClient using wrapped OkHttp …

java retrofit okhttp
Android OkHttp with Basic Authentication

I'm using the OkHttp library for a new project and am impressed with its ease of use. I now have …

android okhttp
Download binary file from OKHTTP

I am using OKHTTP client for networking in my android application. This example shows how to upload binary file. I …

android inputstream bufferedinputstream okhttp
how to use okhttp to upload a file?

I use okhttp to be my httpclient. I think it's a good api but the doc is not so detailed. …

java android okhttp mimecraft
How to add query parameters to a HTTP GET request by OkHttp?

I am using the latest okhttp version: okhttp-2.3.0.jar How to add query parameters to GET request in okhttp in …

java http-get okhttp query-parameters
Uploading a large file in multipart using OkHttp

What are my options for uploading a single large file (more specifically, to s3) in multipart in Android using OKhttp?

android file-upload upload okhttp
OkHttp how to log request body

I'm using an interceptor, and I would like to log the body of a request I'm making but I can't …

android okhttp