【发布时间】:2013-08-31 04:56:24
【问题描述】:
如何在 iOS 中连接 SOCKS 代理连接 使用系统网络设置时,我能够通过模拟器成功连接 SOCKS 代理服务器。我试过 ASIHTTPRequest 但失败了。 这是我的示例 ASIHTTPRequest 代码
NSURL *url = [NSURL URLWithString:@"我在浏览器中的工作 URL"];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request setProxyHost:@"aa.bb.c.dd"];
[request setProxyUsername:@""];
[request setProxyPassword:@""];
[request setProxyPort:12345];
[request setDelegate:self];
[request startAsynchronous];
我想在我的设备上的应用程序中连接和使用 SOCKS 代理连接和 Web 服务。提前致谢。
【问题讨论】:
标签: iphone ios xcode socks nsconnection