• 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: Using NSURLSessionStreamTask for WebSockets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Using NSURLSessionStreamTask for WebSockets (From: Jens Alfke <email@hidden>)
 >Re: Using NSURLSessionStreamTask for WebSockets (From: Thibault Martin-Lagardette <email@hidden>)

  • Prev by Date: Re: Using NSURLSessionStreamTask for WebSockets
  • Next by Date: Re: Using NSURLSessionStreamTask for WebSockets
  • Previous by thread: Re: Using NSURLSessionStreamTask for WebSockets
  • Next by thread: Re: Using NSURLSessionStreamTask for WebSockets
  • Index(es):
    • Date
    • Thread