首页 > 解决方案 > How to make a random proxy in every request using Flurl or HttpClient in C#?

问题描述

Is it possible with your extension to use random proxy for each request? without re-creating a new instance of httpclient? I am doing scratching on a website, and that site blocks my IP if I call many incoming requests in a minute, in this situation I am forced to use a Proxy. If I use a Proxy server that supports cyclic Proxy, each request I call will have a different IP. That's great, but there are very few providers like this with good quality. Some other vendors download the list of available Proxies, but to me this is not possible to declare in Flurl settings. I want you to think about developing an extension method like WithProxy (host: port) ... that can make each call on a different IP.

标签: c#proxyflurl

解决方案


推荐阅读