I tried:
request.AddHeader("Cookie", ....
request.AddCookie
request.AddParameter("","",ParameterType.Cookie)
.I sniff the network but the cookies don't send.
You need to add the cookies to the RestRequest
object.
var client = new RestClient("<server_url>");
var request = new RestRequest("<resource_url>", Method.GET);
request.AddCookie("cookie_name", "cookie_value");
request.AddCookie("cookie_name2", "cookie_value2");
var result = client.Execute(request);
Find more info about AddCookie API
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With