mona
mona

Reputation: 63

iPad application download files from password-protected directory

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?

Upvotes: 1

Views: 310

Answers (1)

Mike Abdullah
Mike Abdullah

Reputation: 15003

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.

Upvotes: 1

Related Questions