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.