Home > Net >  Send post request using restsharp thru proxy
Send post request using restsharp thru proxy

Time:01-17

Im trying to send a post request thru a proxy using restsharp but i dont know how to. im not trying to send it thru a proxy that requires authentication( ip authentication or user/pass) just a simple ip:port proxy.

CodePudding user response:

You need to specify proxy in the client options:

var options = new RestClientOptions(url) { 
    Proxy = new WebProxy(proxyAddress)
};
var client = new RestClient(options);
  •  Tags:  
  • Related