Re: Using NSURLSessionStreamTask for WebSockets
Re: Using NSURLSessionStreamTask for WebSockets
- Subject: Re: Using NSURLSessionStreamTask for WebSockets
- From: Jens Alfke <email@hidden>
- Date: Tue, 14 Mar 2017 17:07:49 -0700
> On Mar 14, 2017, at 4:29 PM, Thibault Martin-Lagardette <email@hidden> wrote:
>
> - Constructing and parsing HTTP messages can be done with CFHTTPMessageCreateRequest/Response
> - Stream tasks do handle SSL for you (with -startSecureConnection)
> - Stream tasks handle proxies but only SOCKS :-( — I've filled a bug to request HTTP proxies, if you go that route, you should too.
Yup, I already use CFHTTPMessage for other stuff. I discovered the SSL and proxy support right after sending my email. *facepalm*
> - Stream tasks do handle auth challenges via NSURLSession's delegate, and its own delegate as well
The only kind of auth challenges I imagine they can support are SSL server trust and client certs. Other auth is at the HTTP level, but a task opened as a stream isn’t doing any HTTP parsing. So that means no HTTP Basic or Digest auth, or cookie-based sessions, or OAuth, etc.
—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