如何在具有代理设置的系统中使用 charles?

Posted

技术标签:

【中文标题】如何在具有代理设置的系统中使用 charles?【英文标题】:How to use charles in a system with proxy settings? 【发布时间】:2012-09-17 09:49:53 【问题描述】:

我正在使用办公室的虚拟电脑,我想在其中与 charles 一起进行测试。 该 Windows 操作系统使用代理连接到网络。 在 Charles 软件中,当我取消选中“启用 Windows 代理”复选框时,我能够连接到互联网,但来自 localhost 的连接不会被记录!当我检查它,我明白了,

Charles 错误报告

Name lookup failed for external proxy server
Charles failed to resolve the name of your external proxy server into an IP address.    
Check your external proxy configuration in the External Proxy Settings.
The actual exception reported was:
java.net.UnknownHostException: http://webproxy.****.***.*****.net<br>

虽然我收到此错误,但选中“启用Windows Proxy”复选框时,我可以录制LocalHost请求! 这是为什么呢? 在外部代理设置中,启用了“使用外部代理”,当取消选中时,-internet 工作但不记录。 我的目标是捕获所有由软件从浏览器以外的操作系统发送的请求。 怎么做?请帮忙。 谢谢

【问题讨论】:

【参考方案1】:

您的 VPC 可能位于允许绕过 Windows 代理的不同子网上 - 这也可以解释为什么它无法解析代理的主机名(不同的子网)。检查 Virtual PC 中的网络设置,看看是否不能使用其他方法连接到网络(NAT、桥接等)。

【讨论】:

以上是关于如何在具有代理设置的系统中使用 charles?的主要内容,如果未能解决你的问题,请参考以下文章

使用Charles 4.1.1 抓取iPhone上的数据接口

使用Charles 4.1.1 抓取iPhone上的数据接口

如何在charles代理中阻止localhost流量?

如何使用公司代理为 iOS 模拟器设置 Charles 代理

测试工具-Charles代理设置

代理影响正常浏览器访问