简体   繁体   中英

Is There A HTTP Client Class For Java (Android)?

I am currently writing a Android application. I need to connect to a internet web server, send username/password credentials and accept cookies from the server for use for subsequent requests to the same server.

Do you know of a HTTP client class or anything I can use in the SDK that currently supports this?

DefaultHttpclient and HttpClient class are already there. You can use either one of this.

Do you mean HttpClient and its various implementors ?

There is Resty and an Android version available on https://github.com/mravenel/Resty (DISCLAIMER: I'm the author)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM