views:

51

answers:

1

Hello everyone,
I have a password-protected directory on a running server. I would like to download some file(s) from this directory (using a URL) to the Documents directory of my iPad application. How do I send the password of the directory I am trying to access?

+1  A: 

Use NSURLConnection. If the server asks for a password, the connection's delegate will be sent a -connection:didReceiveAuthenticationChallenge: message. Use it to supply password to the server and continue the download.

Mike Abdullah