I\'m trying to manipulate this curl request in Objective-C:
curl -u username:password \"http://www.example.com/myapi/getdata\"
I\'ve implem
This guide seems to do what you're looking for: http://deusty.blogspot.co.uk/2006/11/sending-http-get-and-post-from-cocoa.html
Just as an FYI, a lot of classes accept initWithData, and NSData
has a method dataWithContentsOfURL
, if you want to avoid setting up NSURLConnections
yourself this could be an easier way of achieving what you're looking for.