IOS ASIHTTPRequest Detailed

Source: Internet
Author: User

The ASIHTTPRequest Cfnetwork API is encapsulated and very simple to use, written in objective-c, and can be used in Mac OS x systems and iOS applications. ASIHTTPRequest applies to basic HTTP requests, and to the interaction between rest-based services.

ASIHTTPRequest features are very powerful, the main features are as follows:

  • • The task of submitting data to the server and obtaining data from the server is done through a simple interface
  • L downloaded data that can be stored in memory or stored directly on disk
  • L can upload local file to server
  • L can easily access and manipulate the request and return HTTP header information
  • L can get the progress information to upload or download, provide a better experience for the application
  • L support upload or download queue, and can get progress information of queue
  • Support for Basic, Digest, and NTLM authentication, authorization credentials are automatically maintained in the same session, and can be stored in keychain (password management system for Mac and iOS operating systems)
  • L Support Cookies
  • When the app (IOS 4+) is running in the background, the request can continue to run
  • L Support gzip Compressed data
  • The built-in Asidownloadcache class allows you to cache the data returned by the request so that even if no network can return the cached data results
  • L asiwebpagerequest– can download the full page, including the page, style sheet, script and other resource files, and display in Uiwebview/webview. Pages of any size can be cached indefinitely, so that you can browse offline even if you don't have a network
  • L Support client Certificate
  • • Support for initiating HTTP requests through proxies
  • L Support Bandwidth throttling. On the iOS platform, you can automatically decide whether to limit bandwidth based on current network conditions, such as when using a Wwan (gprs/edge/3g) network, and without any restrictions when using WiFi
  • L Support for continuous transmission of breakpoints
  • L Support synchronous and asynchronous requests

For the rest, see http://blog.csdn.net/zkdemon/article/details/7066807.

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.