In the past I have use ASIHTTPRequest
but now there is NSURLRequest
. Should we be using the NSURLRequest
now? Are there any disadvantages
The asihttprequest is outdated library that doesn't support now for development. Do not use it.
the NSURLRequest is default iOS (cocoa) class to use. I recommend it for very little usage because you will need to write lots of code to handle connection responses. On top of it are build all http libraries.
The AFNetwoking is standart now for http, imho. It uses blocks for callbacks, it supports different types of data json, xml etc. it is well designed and can be easily subclassed. it is best.