• 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
Re: CFHTTPMessageAddAuthentication problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFHTTPMessageAddAuthentication problem


  • Subject: Re: CFHTTPMessageAddAuthentication problem
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 02 Dec 2013 17:06:54 -0800


On Dec 2, 2013, at 4:41 PM, Anluan O'Brien <email@hidden> wrote:

This is how HTTP persistent connections work isn't it? NTLM too?

You can have a long-lived connection where the server sends data when it’s available; that’s a fairly common technique often called Comet. But it doesn’t send fake HTTP requests back. 

Anyway, back to the original topic: Use NSURLConnection. When you’re expecting an HTTP request from the server, accumulate incoming data into an NSData and keep trying to parse it using CFHTTPMessage. Once you have enough data to parse, you can look at the message you got.

—Jens
 _______________________________________________
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

References: 
 >Re: CFHTTPMessageAddAuthentication problem (From: Kevin Yu <email@hidden>)
 >Re: CFHTTPMessageAddAuthentication problem (From: Jens Alfke <email@hidden>)
 >Re: CFHTTPMessageAddAuthentication problem (From: Kevin Yu <email@hidden>)
 >Re: CFHTTPMessageAddAuthentication problem (From: Jens Alfke <email@hidden>)
 >Re: CFHTTPMessageAddAuthentication problem (From: "Anluan O'Brien" <email@hidden>)

  • Prev by Date: Re: CFHTTPMessageAddAuthentication problem
  • Next by Date: Re: Macnetworkprog Digest, Vol 10, Issue 80
  • Previous by thread: Re: CFHTTPMessageAddAuthentication problem
  • Next by thread: Re: CFHTTPMessageAddAuthentication problem
  • Index(es):
    • Date
    • Thread