• 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
CFHTTPMessageAddAuthentication only works once?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFHTTPMessageAddAuthentication only works once?


  • Subject: CFHTTPMessageAddAuthentication only works once?
  • From: Miro Jurišić <email@hidden>
  • Date: Thu, 10 Feb 2005 12:52:04 -0500

The sequence of events in my code is:

1. Make a CFHTTPMessageRef with no auth
2. Make a CFReadStreamRef from the message
3. Open the stream and read from it
4. Receive HTTP 401 response
5. Ask user for password
6. Call CFHTTPMessageAddAuthentication on the original message
7. Make a new stream, open it, read from it
8. Receive 401 again because the user entered an incorrect password
9. Ask user for password
10. Call CFHTTPMessageAddAuthentication on the original message
11. Make a new stream, open it, read from it
12. Receive 401 again even though the user entered the correct password

Am I missing something or does CFHTTPMessageAddAuthentication effectively only work once?

Thanks,

meeroh

--

<http://web.meeroh.org/> | KB1FMP

"And when I have understanding of computers, I shall be
        the supreme being!" -- Evil, "Time Bandits"

_______________________________________________
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: CFHTTPMessageAddAuthentication only works once?
      • From: Jeremy Wyld <email@hidden>
  • Prev by Date: OTConnect() returns kOTOutStateErr
  • Next by Date: Re: CFHTTPMessageAddAuthentication only works once?
  • Previous by thread: Re: OTConnect() returns kOTOutStateErr
  • Next by thread: Re: CFHTTPMessageAddAuthentication only works once?
  • Index(es):
    • Date
    • Thread