I'm about to upgrade AFNetworking from 1.x to 3.x. My question is what is the different between AFHTTPSessionManager and AFURLSessionManager? and when to use each? Which one support both XML and JSON request and response? Thanks
AFNetworking 3.x what is the different between AFHTTPSessionManager and AFURLSessionManager?
1.4k Views Asked by Lê Khánh Vinh At
1
There are 1 best solutions below
Related Questions in JSON
- getting undefined while iterating json
- How can I serialize a numpy array while preserving matrix dimensions?
- What is best way to check if any of the property of object is null or empty?
- How to query JSON data according to JSON array's size with Spark SQL?
- Extracting data from json_decode with lat and lng geolocation
- Convert JSON.gz to JSON in node js
- How do I get the type to convert to when deserializing from Jackson
- Escape dot in jquery validate plugin
- Are allOf and properties keywords interchangeable?
- Sort continents by amount of countries
- Is there a data format lighter than json?
- Object of class CS_REST_Wrapper_Result could not be converted to string in CAMPAIGN MONITOR
- How to read JSON data from a web server running PHP and MySQL?
- Parse Nsmutabledictionary and extract value
- Handle empty JSON values in Java
Related Questions in XML
- Impose component restriction to a series of parsys-CQ
- Wrong xml being inflated android
- Shorten the XSD
- Writing/Overwriting to specific XML file from ASP.NET code behind
- Magento custom block. Can't get block's file
- Layout not shifting up when keyboard is open
- CSV to XML XSLT: How to quote excape
- Getting deeply embedded XML element values
- Saving FileSystemInfo Array to File
- how to apply templates within xsl:for-each
- Spring - configure Jboss Intros for xml with java config?
- Problems with implementing custom actionbar android
- Can Apache Ant be told to cache its XML files?
- Is Log4j2 xml configuration case sensitive?
- How to get a specific node value in XML Pull Parser
Related Questions in AFNETWORKING
- Bulletproof HTTP Monitor for iOS
- In UITableViewCell, UIImageView content repeats after some cells using AFNetworking
- NSURLSession/NSURLConnection HTTP load failed on iOS 9
- AFNetworking 2.0 Cache Issue
- UICollectionView and AFNetworking image doesn't load sometimes
- UITableViewAutomaticDimension + AFNetworking
- AFNetworking on Swift
- Multipart/form-data POST request gets timeout and is never sent using AFNetworking
- What is an appropriate way to handle API loop with progress indicator?
- Uploading an Array of images using AFNetworking
- Wrong content-type received (AFNetworking bug)?
- From ASIHTTPRequest to AFNetworking
- Replacing NSURLConnection with AFNetworking
- Block set by setDataTaskWillCacheResponseBlock on AFHTTPSessionManager is never called
- AFNetworking JSON RESTful Service parameters
Related Questions in AFHTTPSESSIONMANAGER
- No visible @interface for 'AFHTTPSessionManager' declares the selector 'POST:parameters:progress:success:failure:'
- File uploading progress issue
- iOS AFNetworking 2.0 how to make AFHTTPSessionManager to automatically apply cookies for a domain?
- AFNetworking 3 uploadTaskWithRequest / uploadTaskWithStreamedRequest handlers not called
- how to get status code from success block I am using AFHTTPSessionManager?
- How to provide unique id to get match details with CricAPI?
- Raw XML Post using AFHTTPSessionManager
- AFHTTPSessionManager subclass swift
- AFHTTPSessionManager http registration, Objective-C IOS
- Confused about Alamofire sessionmanager
- The data couldn’t be read because it isn’t in the correct format -objective c
- AFNetworking 3.x what is the different between AFHTTPSessionManager and AFURLSessionManager?
- Added header in network request using AFNetworking not working
- AFHTTPSessionManager to use SOAP based service
- Passing Parameters Using AFNetworking in swift
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You generally use
AFHTTPSessionManagerif you want to doGETorPOSTrequests that might include preparation of JSON orx-www-formurlencodedrequests or parsing of complex responses. You can get away withAFURLSessionManagerif you're doing very simple requests for which you don't need any of the additionalAFHTTPSessionManagercapabilities.Bottom line,
AFHTTPSessionManageris just a subclass ofAFURLSessionManagerwith some richer creation of complex requests and/or parsing of complex responses. Based upon your question (parsing XML and JSON responses),AFHTTPSessionManageris what you want to use.