• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSURLConnection and NSURLDownload Authentication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: [SOLVED] Re: escape special characters in HTML
  • Next by Date: Re: CFRunLookFindMode crash
  • Previous by thread: Re: escape special characters in HTML
  • Next by thread: Garbage collection in Leopard (not an NDA question)
  • Index(es):
    • Date
    • Thread