Re: CFHTTPMessageAddAuthentication problem
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