Top "Okhttp" questions

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

OkHttp javax.net.ssl.SSLPeerUnverifiedException: Hostname domain.com not verified

I've been trying for days to get this working. I'm trying to connect to my server over https with a …

java android ssl okhttp
How can I pin a certificate with Square OKHTTP?

I think I need to create a new SSL Socket Factory? Also, I don't want to use the global SSL …

android okhttp
How to implement cookie handling on Android using OkHttp?

Using OkHttp by Square https://github.com/square/okhttp, how can I: Retrieve a cookie returned from the server Store …

android cookies okhttp
Retrofit 2 example tutorial but GsonConverterFactory display error "Cannot resolve symbol"

I'm trying to follow Retrofit's 2 tutorial, but on this part of the code there is a GsonConverterFactory that displays error …

android gson retrofit android-library okhttp
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 Library - NetworkOnMainThreadException on simple post

I want to use OkHttp library for networking in Android. I started with the simple post example as written in …

android android-asynctask okhttp networkonmainthread
Get Http Status Code with OkHttp

I'm using OkHttp to get the content of some websites. However, I'm not able to get the Http-Status Code from …

java http-status-codes okhttp
How to get response body to retrofit exception?

I am trying to connect to rest service via retrofit in android application. I am getting responses. But when there …

java android rest retrofit okhttp
Does Retrofit make network calls on main thread?

I am trying to explore Retrofit+OkHttp on Android. Here's some code I found online : RestAdapter restAdapter = new RestAdapter.Builder().…

android retrofit okhttp
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