How to use XMLHttpRequest in Objective-C?
I'm creating easy to use kannada comic reader on mac for my cousins. I'm able to pull the comic pages, but lot of meta content exchanged webpage and server using XML开发者_开发技巧HttpRequest
.
I'm finding difficulties use XMLHttpRequest
, could anyone tell me how can I use it?
The closest thing to a simple XMLHttpRequest is to create a data object from a URL.
For more advanced requests (e.g., custom headers, request methods that aren't GET), you'll need to use NSURLConnection. You should probably do that anyway; your application will be more robust and more responsive for it.
精彩评论