处理连接 iPhone 与代理



我在3G网络上使用我的http代理(squid)。

APN:xxxxx
用户名:xxxx
密码:XXXX
代理=x.x.x.x

在 3g 中,无法在代理配置中添加用户名/密码。我希望我的代理应该知道 http 请求源(如何发送)。是否可以在 iphone 发送的所有标头请求中添加一些值,并从我的 iPhone 应用程序处理 iphone 和代理之间的连接?

我发现这个Profil配置可以重定向所有流量并通过3G将usrname/psswd发送到代理。
这是对的吗?

<key> APN </key>

<string> mobile.test.com </string> <key>代理</key>
<string> proxy.test.corp.local </string>
<key>代理端口</key>
<integer> 8080 </integer>
<key>代理用户名</key>
<string>测试\我的姓名</string>
<key>代理密码</key>
<string>我的密码</string>

最新更新