NSURLConnection and NSURLDownload Authentication
NSURLConnection and NSURLDownload Authentication
- Subject: NSURLConnection and NSURLDownload Authentication
- From: Keith Wilson <email@hidden>
- Date: Fri, 17 Nov 2006 02:01:56 +1100
I am accessing an ftp site to download some files using
NSURLConnection and NSURLDownload.
If I include username:password in the URL then it all works fine. I
can get my data using either NSURLConnection or NSURLDownload.
If I do not include the password (or leave it empty) my machine
receives a request for a password but it gets an automatic response
of email@hidden and my program never receives
didReceiveAuthenticationChallenge:
-(void)download:(NSURLDownload*)download
didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)
challenge
I seem to get all of the other connection and download responses.
Q1. Is it secure to put the password in the URL string in
NSURLRequest? Does it get automatically encrypted if the server asks
for it.
Q2. How can I stop the automatic response of email@hidden
which seems to be the same as kAnonymousPasswordString
Keith
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden