I'm a big fan of HttpClient, especially the Flurl wrapper. However, I have the following problem. I access an API resource, where they limit the number of requests per IP per day. I thought of a solution using 3rd party Proxy to access. Unfortunately, my knowledge is limited, and the documentation I find online is not very much about this, of course, HttpClient (or Flurl) is not designed to do this. I want every 5 or 10 requests to automatically change to a new proxy to avoid blocking access. Thank you!
Asked
Active
Viewed 21 times
0
-
Please see this related answer on [StackOverflow](https://stackoverflow.com/questions/52708836/setting-a-per-request-proxy-or-rotating-proxies-with-net-flurl-httpclient). – sarin Jun 17 '21 at 16:28
-
@sarin Great find! – canton7 Jun 17 '21 at 16:41
-
I tried @mcont's code but it doesn't work. Are there any better sample snippets? – fullstackhero Jun 17 '21 at 17:50