0

I am currently working on an app that uses basic Auth. and logs in with an API which is written in CURL, so what would be the easiest way about doing this? NSURL or Libcurl? and how would i do it?

Is there any example of what i can do?

Alex Trott
  • 4,576
  • 4
  • 23
  • 30

1 Answers1

0

It's easier to use the NSURLRequest class, since it comes nicely packaged in Cocoa. Take a look at this post for a good example of how to properly use it for basic authentication. Hopefully that gives you an idea how to authenticate using the Cocoa framework.

Community
  • 1
  • 1
phaxian
  • 1,058
  • 16
  • 28