Implementing HTTP proxy support, if not using NSURLConnection
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