A
A
Aleksandr Koscheev2015-06-18 03:43:38
Android
Aleksandr Koscheev, 2015-06-18 03:43:38

httppost is deprecated. What do we use instead?

Since version 22, all your favorite classes have been deprecated.
HttpPost
HttpPut
HttpResponse
and others from org.apache.http.client.* and org.apache.http.client.methods.*.
It's strange, but HttpPatch passed.
What to use instead of one library to support all methods?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Abramov, 2015-06-18
@ru-alxr

OkHTTP, if you want to have a human API
Well, or developer.android.com/reference/java/net/HttpURLCo... as the recommended standard lib, which is actually said in the description of why depricate.

C
Che_Bu_Rashka, 2015-12-16
@Che_Bu_Rashka

The default method is kind of clumsy. I am using Android Asynchronous Http Client

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question