forked from restsharp/RestSharp
-
Notifications
You must be signed in to change notification settings - Fork 7
Cookies
petejohanson edited this page Dec 28, 2011
·
1 revision
RestSharp 102.4+ supports using a shared System.Net.CookieContainer
for all requests from the same IRestClient
. By doing so, any cookies set or unset in responses will be used in subsequent requests. In order to use a shared CookieContainer
, simply set the property on your RestClient
instance before using it:
var client = new RestClient ("http://server/");
client.CookieContainer = new System.Net.CookieContainer ();
TODO