How to make an proxy robbiehanson/CocoaHTTPServer#70 http://stackoverflow.com/questions/6601536/ios-voip-socket-will-not-run-in-background https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/AdvancedAppTricks/AdvancedAppTricks.html https://developer.apple.com/library/ios/documentation/iphone/conceptual/iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html
Use CocoaHTTPServer [DONE]
listen at localhost:18888 [DONE]
set plist voip mode [DONE]
make socket(server) as voip mode [DONE] https://github.com/robbiehanson/CocoaHTTPServer/blob/master/Vendor/CocoaAsyncSocket/GCDAsyncSocket.h#L890-L915 Doesn't help much because the socket has to be connected to mark as voip. HTTP servers tends to accept sockets rather than keep things connected... But anyway I've done this. Looks like it's working properly.
test listening from other app using http://localhost:18888/ [DONE] Worked from Safari.app for http://127.0.0.1:18888/
try proxying request (http)
try proxying request (https)
test listening from other app using WiFi Proxy Settings
Somebody already tried this but no info https://groups.google.com/forum/#!topic/cocoahttpserver/cvMgUzKWXWA