c# - 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.
解决方案
推荐阅读
- wordpress - Azure Wordpress 被删除后收费
- arrays - 我的函数没有返回我的预期输出
- jenkins - 如何解决 sonarqube 质量门的“org.sonarqube.ws.client.HttpException: Error 401”错误
- reactjs - 在 EditorJs 中创建自定义元素
- javascript - AWS ECS (Fargate) 无法挂载 EFS 文件系统“无法解析”
- cmake - Xcode 12 和 CMAKE_IOS_INSTALL_COMBINED=YES 导致 CMake 构建失败
- laravel - 目标类 [Backend\App\Http\Controllers\Backend\ProductController] 不存在
- php - 附加文件时未发布表单(xamp localhost)
- javascript - 如何在单击按钮时用较新的单选按钮替换单选按钮
- javascript - 如何组合具有相同属性值的数组中的元素