• 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
Implementing HTTP proxy support, if not using NSURLConnection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Implementing HTTP proxy support, if not using NSURLConnection


  • Subject: Implementing HTTP proxy support, if not using NSURLConnection
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 19 Dec 2013 14:07:07 -0800

So, I’m working on a WebSocket implementation that’s based on GCDAsyncSocket. Since the WebSocket protocol starts out with an HTTP connection, I’m using CFHTTPMessage to create and parse the HTTP bits.

Unfortunately this means I have to implement proxy support myself*. I’ve figured out how to get the proxy settings using CFProxySupport.h, but now I don’t know how to apply them. SOCKS support, in particular, sounds like it’s pretty nontrivial. Are there libraries I can use to do this?

—Jens

* Yes, there is kCFStreamPropertyHTTPProxy, but that only works if you’re using CFReadStreamCreateForHTTPRequest, which GCDAsyncSocket doesn’t since it’s general-purpose, not just for HTTP.
 _______________________________________________
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: Implementing HTTP proxy support, if not using NSURLConnection
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Prev by Date: Re: Difference between -1001 and -1004
  • Next by Date: Re: Implementing HTTP proxy support, if not using NSURLConnection
  • Previous by thread: Re: Difference between -1001 and -1004
  • Next by thread: Re: Implementing HTTP proxy support, if not using NSURLConnection
  • Index(es):
    • Date
    • Thread