我試圖通過使用 restsharp 的代理發送發布請求,但我不知道該怎么做。我沒有嘗試通過需要身份驗證(ip 身份驗證或用戶/通行證)的代理發送它,只是一個簡單的 ip:port 代理。
uj5u.com熱心網友回復:
您需要在客戶端選項中指定代理:
var options = new RestClientOptions(url) {
Proxy = new WebProxy(proxyAddress)
};
var client = new RestClient(options);
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/414243.html
標籤:
