CURL request in iOS
12,030
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.
Author by
woutr_be
Full stack product engineer with a passion for building great, user friendly products. I'm capable of building large front-ends and still be able to switch to working on back-ends with complex code bases.
Updated on August 09, 2022Comments
-
woutr_be almost 2 years
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.