[英]Send post request using restsharp thru proxy
我試圖通過使用 restsharp 的代理發送發布請求,但我不知道該怎么做。 我不想通過需要身份驗證的代理(ip 身份驗證或用戶/通行證)發送它,只是一個簡單的 ip:端口代理。
您需要在客戶端選項中指定代理:
var options = new RestClientOptions(url) {
Proxy = new WebProxy(proxyAddress)
};
var client = new RestClient(options);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.