cURL在链中使用多个代理 [英] cURL using multiple proxies in a chain

查看:194
本文介绍了cURL在链中使用多个代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用cURL在单个请求中链接多个代理?

Is it possible to chain multiple proxies in a single request using cURL?

例如:
start cURL - > proxy1 - > proxy2 - > destination地址

For example: start cURL -> proxy1 -> proxy2 -> destination address

这可以使用cURL实现吗?

Can this be achieved using cURL?

推荐答案

代理定义是一个中间人。软件在客户端和服务器之间运行和执行工作。客户端询问代理,然后它会询问服务器。

A proxy is by definition a middle man. Software running and doing work between the client and the server. The client asks the proxy which then it turn asks the server.

链接代理将意味着第一个代理将询问第二个代理,代理做它的请求它不能是客户端的工作要求第二个代理,但它必须是第一个代理的任务。

"Chained" proxies would then imply that a first proxy would ask a second proxy, but as the client asks the proxy to do its request it cannot be the job of the client to ask the second proxy, but it must be the first proxy's task.

唉,如果你有一个代理A,你设置与另一个代理B谈话,你告诉curl使用代理A,然后肯定使用链接代理。我甚至不知道卷曲可以做什么不能使用它...

Alas: sure, if you have a proxy A that you setup to talk to another proxy B, and you tell curl to use proxy A then certainly the chained proxies will be used. I don't even see what curl could do to NOT work with it...

这篇关于cURL在链中使用多个代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆