cURL using multiple proxies in a chain

吃可爱长大的小学妹 提交于 2019-12-07 14:29:53

问题


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

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

Can this be achieved using cURL?


回答1:


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.

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...



来源:https://stackoverflow.com/questions/8022672/curl-using-multiple-proxies-in-a-chain

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!