How to switch from HttpClient to HttpUrlConnection?

前端 未结 3 812
臣服心动
臣服心动 2020-12-11 06:10

I am creating an Android application and I send data from Android application to servlet through HttpClient. I use HttpPost method.

I read in Android developer site

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-11 06:47

    You don't have to switch, you can continue using apache's library like I described in this answer. There are really no downsides to continue using apache's library - it's only google's marketing.

提交回复
热议问题