Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用winsock2通过代理下载html页面
谢谢
你甚至不必使用 C++。编写一个批处理脚本来远程登录您要连接的服务器,然后使用命令get。然后使用>>运算符将其写入文件
get
>>
不同类型的代理使用不同类型的通信协议,所以首先你需要决定首先要支持哪种类型的代理——HTTPCONNECT动词、SOCKS等。首先实现它,然后一旦你成功建立了一个套接字通过代理与目标服务器连接,然后阅读RFC 2616以了解如何通过该连接实现 HTTP 协议。
CONNECT