• 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
NSURLDownload and http proxy username/password
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSURLDownload and http proxy username/password


  • Subject: NSURLDownload and http proxy username/password
  • From: Elliott <email@hidden>
  • Date: Wed, 22 Jun 2011 10:09:02 -0700 (PDT)

I'm still trying to get NSURLDownload working with username and password.  I have it working without username and password, but when I add a username and password and proxy server requires password, it doesn't work automatically.

I tried removing my delegate's didReceiveAuthenticationChallenge to see if it would be handled automatically and it doesn't work.  I re-added this and trace through it and see that the proposed credential is NULL in the passed challenge.  I hardcoded the username and password for the proxy and pass this via NSURLCredential's credentialWithUser: and it does work.

Do I need to use (credentialWithUser: password: persistence: ) to create the NSURLCredential?  If so, how do I get the username and password?

I do see in Safari that it brings up a keychain dialog to access the information.  I found the item in the keychain.  Should I try to access this directly?

Thanks,
Elliott
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSURLDownload and http proxy username/password
      • From: Mark Pauley <email@hidden>
  • Prev by Date: Re: URL filtering / IP Filter NKE
  • Next by Date: Re: NSURLDownload and http proxy username/password
  • Previous by thread: Re: URL filtering / IP Filter NKE
  • Next by thread: Re: NSURLDownload and http proxy username/password
  • Index(es):
    • Date
    • Thread