![](/img/trans.png)
[英]Asp.Net core 3.1 put request failed: Failed to proxy the request to http://weatherforecast/1, because the request to the proxy target failed
[英]how to set default proxy with .NET core 3.1 for HTTP client for any request?
我正在使用 interfax.api dll 向用戶發送傳真。 如何添加代理服務器配置以將傳真發送給用戶。 實際上我想在 .net core 中啟用代理服務器設置。 最好的方法是什么?
問題似乎與 interfax api 無關。 這可以通過向您的 .net 核心項目添加代理 uri 來解決
HttpClient.DefaultProxy = new WebProxy("http://192.168.6.129:3128/", true);
在您的啟動類 ConfigureServices 方法中
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.