Reputation: 9732
I'm trying to make use of the CO-OP API for some purposes in my app (http://coopapp.com/api)
I know how to preform the request using curl:
curl http://coopapp.com/groups/20/statuses -H 'Accept: application/xml' \ -H 'Content-Type: application/xml' -u email:password
But I can't figure out how to do this in iOS, hopefully somebody can give me a push in the right direction.
Upvotes: 2
Views: 13650
Reputation: 15927
You do that with the NSURLConnection
class. But I recommend using MKNetworkKit which is a handy wrapper around it. It actually even shows the equivalent curl
command in the description of its operations.
Upvotes: 3
Reputation: 865
If you want to load the same web page use UIWebView,Same HTML page will be loaded
Upvotes: 0