-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Description
latest version
Setting up proxy will throw an Exception during request
Requests without Proxy property will not be captured by Fiddler
Actual Behavior
var client = new RestClient("http://www.google.com");
client.Proxy = new WebProxy("127.0.0.1", 8888);
var req = new RestRequest("/", Method.GET);
var resp = client.Execute(req);
Specifications
- Version: 106.0.1
- Platform:Win10
- target framework: .net core 2.0
StackTrace
System.PlatformNotSupportedException: Operation is not supported on this platform. at System.Net.SystemWebProxy.GetProxy(Uri destination) at System.Net.ServicePointManager.ProxyAddressIfNecessary(Uri& address, IWebProxy proxy) at System.Net.ServicePointManager.FindServicePoint(Uri address, IWebProxy proxy) at System.Net.HttpWebRequest.get_ServicePoint() at RestSharp.Http.ConfigureWebRequest(String method, Uri url) at RestSharp.Http.GetStyleMethodInternal(String method) at RestSharp.RestClient.Execute(IRestRequest request, String httpMethod, Func`3 getResponse)}
Metadata
Metadata
Assignees
Labels
No labels