Java Basic Knowledge Enhancement Network programming note 18:android network communication using HttpClient Post/get way to read network data (based on HTTP communication technology)

Source: Internet
Author: User

Use httpclient for Get-mode communication, to establish network links through HttpClient, to read data using the HttpGet method, and to get the entity return value through response.

Use httpclient for post communication, to establish network links through HttpClient, to use the HttpPost method to transfer data and read data, both outgoing and incoming data are subclasses of entity.

See: Android (Java) Learning Note 211: Submit data with httpclient (QQ login case)

Java Basic Knowledge Enhancement Network programming note 18:android network communication using HttpClient Post/get way to read network data (based on HTTP communication technology)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.