Click here to Skip to main content
15,880,972 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am trying to send a restsharp post request thru a proxy server, but I cant figure out how to.

What I have tried:

I have tried this but it didnt work
C#
var client = new RestClient("http://example.com")
client.Proxy = new WebProxy("http://proxy.example.com")
Posted
Comments
Richard Deeming 7-Jan-22 9:36am    
"It didn't work" tells us precisely nothing.

Did you get a compiler error? A runtime error? Something else?

If you want anyone to be able to help you, you need to start by providing sufficient details of the problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900