pokeb / asi-http-request

Easy to use CFNetwork wrapper for HTTP requests, Objective-C, Mac OS X and iPhone

This URL has Read+Write access

pokeb (author)
Sun May 31 05:20:51 -0700 2009
commit  e0588624747533db3748366d29d22685fdcdcfbd
tree    7e8d4d90932038ef71d105f4da8e97071f2f7557
parent  3f1ef515353e07048eeda567ea8ad3df4929628f
name age message
file .gitattributes Fri Nov 07 11:58:33 -0800 2008 Try to stop git choking on xcode projects [pokeb]
file .gitignore Sat May 16 05:26:11 -0700 2009 Added up to date GHUnit to project Mac tests no... [pokeb]
directory Classes/ Sun May 31 04:32:50 -0700 2009 Remove debugging logs [pokeb]
directory Frameworks/ Sat May 16 07:35:06 -0700 2009 Make iPhone tests work with new API [pokeb]
file LICENSE Mon Jul 14 16:27:37 -0700 2008 Added readme with intro and a link to the websi... [Ben Copsey]
directory Mac Sample/ Sat May 16 07:25:18 -0700 2009 Change behaviour where ASINetworkQueues would t... [pokeb]
directory Mac.xcodeproj/ Sat May 16 05:26:11 -0700 2009 Added up to date GHUnit to project Mac tests no... [pokeb]
file README.textile Sun May 31 05:20:51 -0700 2009 Update readme [pokeb]
file clang.sh Sun Mar 22 08:53:26 -0700 2009 Added clang script to handle the fact we now ha... [pokeb]
directory iPhone Sample/ Sat Apr 04 16:50:35 -0700 2009 Clean up for release [pokeb]
directory iPhone.xcodeproj/ Sat May 16 05:26:11 -0700 2009 Added up to date GHUnit to project Mac tests no... [pokeb]
README.textile

ASIHTTPRequest is an easy to use wrapper around the CFNetwork API that makes some of the more tedious aspects of communicating with web servers easier. It is written in Objective-C and works in both Mac OS X and iPhone applications.

It is suitable performing basic HTTP requests and interacting with REST-based services (GET / POST / PUT / DELETE). The included ASIFormDataRequest subclass makes it easy to submit POST data and files using multipart/form-data.

It provides:

  • A straightforward interface for submitting data to and fetching data from webservers
  • Download data to memory or directly to a file on disk
  • Submit files on local drives as part of POST data, compatible with the HTML file input mechanism
  • Stream request bodies directly from disk to the server, to conserve memory
  • Resume for partial downloads
  • Easy access to request and response HTTP headers
  • Progress delegates (NSProgressIndicators and UIProgressViews) to show information about download AND upload progress
  • Auto-magic management of upload and download progress indicators for operation queues
  • Basic, Digest + NTLM authentication support, credentials are automatically re-used for the duration of a session, and can be stored for later in the Keychain.
  • Cookie support
  • GZIP support for response data
  • Based on NSOperation to make queuing requests and background operation easy
  • Comes with a broad range of unit tests

Documentation is available here.