c++ - 如何在 Windows 和 Mac 中构建 "Auto Detect Proxy Settings"

标签 c++ windows macos networking proxy

在 1) Windows 和 2) Mac 中实现该功能的步骤是什么?这些我都经历过,还是不太清楚!我在 Windows 和 Mac 中使用 C/C++。因此,Win API 或 Mac API 就足够了。

我也很困惑,因为 Mac Firefox 也有一个选项“使用系统代理设置”,而 Windows Firefox 中没有该选项。

这些是一些类似的问题:

LINK-1:Programmatically detect system-proxy settings on Windows XP with Python

LINK-2:How does Windows actually detect LAN (proxy) settings when using Automatic Configuration

根据这个Wiki WPAD article ,我们应该按照这个顺序遍历:

但是 LINK-1 说“GET http://wpad/wpad.dat”就足够了。我应该遵循哪一个?

最佳答案

我使用librproxy 。这解决了这个要求。

关于c++ - 如何在 Windows 和 Mac 中构建 "Auto Detect Proxy Settings",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2055221/

相关文章:

c++ - 在 C++ 中,只有默认参数的构造函数是默认构造函数吗?

c++ - scanf() 是如何工作的?

c++ - C4100 "Unreferenced Formal Parameter"在模板中使用时

c# - 关闭默认取自asp.net的localhost地址

python - 如何在 Mac 上启动 BioImageXD?

Python获取mac剪贴板内容

c++ - 在 Windows CE 7 上指定动态端口范围

c++ - 具有动态内存的命名管道策略?

objective-c - 使用助手发布的 NSUserNotification 打开主应用程序

windows - 如何修复在 Windows 终端中启动 `powershell.exe' 时出现的错误 0x800700c1?