• 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
URLSession:didReceiveChallenge: does not seem to work for Basic Auth
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

URLSession:didReceiveChallenge: does not seem to work for Basic Auth


  • Subject: URLSession:didReceiveChallenge: does not seem to work for Basic Auth
  • From: Alexander von Below <email@hidden>
  • Date: Thu, 07 Jul 2016 09:44:36 +0200

Hello,

I am talking to a certain REST server (you can sign up for free, so if you care I will gladly tell you), but when I try to provide basic auth credentials using URLSession:didReceiveChallenge: (which is being called), I receive a 401.

If I add the Basic Auth to the headers, everything works.

Smart people on the list: Am I doing it wrong? Or is the server behaving oddly?

Thanks

Alex
 _______________________________________________
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: URLSession:didReceiveChallenge: does not seem to work for Basic Auth
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
    • Re: URLSession:didReceiveChallenge: does not seem to work for Basic Auth
      • From: Jens Alfke <email@hidden>
  • Next by Date: Re: URLSession:didReceiveChallenge: does not seem to work for Basic Auth
  • Next by thread: Re: URLSession:didReceiveChallenge: does not seem to work for Basic Auth
  • Index(es):
    • Date
    • Thread