diff --git a/docs/docs/usage/request.md b/docs/docs/usage/request.md index 374ee14dd..c4f350747 100644 --- a/docs/docs/usage/request.md +++ b/docs/docs/usage/request.md @@ -224,7 +224,7 @@ client.AddDefaultUrlSegment("foo", "bar"); You can add cookies to a request using the `AddCookie` method: ```csharp -request.AddCookie("foo", "bar"); +request.AddCookie("name", "value", "path", "domain"); ``` RestSharp will add cookies from the request as cookie headers and then extract the matching cookies from the response. You can observe and extract response cookies using the `RestResponse.Cookies` properties, which has the `CookieCollection` type. diff --git a/docs/versioned_docs/version-v110/usage/usage.md b/docs/versioned_docs/version-v110/usage/usage.md index 7c580f096..a47164d49 100644 --- a/docs/versioned_docs/version-v110/usage/usage.md +++ b/docs/versioned_docs/version-v110/usage/usage.md @@ -227,7 +227,7 @@ client.AddDefaultUrlSegment("foo", "bar"); You can add cookies to a request using the `AddCookie` method: ```csharp -request.AddCookie("foo", "bar"); +request.AddCookie("name", "value", "path", "domain"); ``` RestSharp will add cookies from the request as cookie headers and then extract the matching cookies from the response. You can observe and extract response cookies using the `RestResponse.Cookies` properties, which has the `CookieCollection` type. diff --git a/docs/versioned_docs/version-v111/usage/request.md b/docs/versioned_docs/version-v111/usage/request.md index a844ed8a4..9168c8218 100644 --- a/docs/versioned_docs/version-v111/usage/request.md +++ b/docs/versioned_docs/version-v111/usage/request.md @@ -205,7 +205,7 @@ client.AddDefaultUrlSegment("foo", "bar"); You can add cookies to a request using the `AddCookie` method: ```csharp -request.AddCookie("foo", "bar"); +request.AddCookie("name", "value", "path", "domain"); ``` RestSharp will add cookies from the request as cookie headers and then extract the matching cookies from the response. You can observe and extract response cookies using the `RestResponse.Cookies` properties, which has the `CookieCollection` type. diff --git a/docs/versioned_docs/version-v112/usage/request.md b/docs/versioned_docs/version-v112/usage/request.md index 374ee14dd..c4f350747 100644 --- a/docs/versioned_docs/version-v112/usage/request.md +++ b/docs/versioned_docs/version-v112/usage/request.md @@ -224,7 +224,7 @@ client.AddDefaultUrlSegment("foo", "bar"); You can add cookies to a request using the `AddCookie` method: ```csharp -request.AddCookie("foo", "bar"); +request.AddCookie("name", "value", "path", "domain"); ``` RestSharp will add cookies from the request as cookie headers and then extract the matching cookies from the response. You can observe and extract response cookies using the `RestResponse.Cookies` properties, which has the `CookieCollection` type. diff --git a/docs/versioned_docs/version-v113/usage/request.md b/docs/versioned_docs/version-v113/usage/request.md index 61de32de5..19feaed6a 100644 --- a/docs/versioned_docs/version-v113/usage/request.md +++ b/docs/versioned_docs/version-v113/usage/request.md @@ -224,7 +224,7 @@ client.AddDefaultUrlSegment("foo", "bar"); You can add cookies to a request using the `AddCookie` method: ```csharp -request.AddCookie("foo", "bar"); +request.AddCookie("name", "value", "path", "domain"); ``` RestSharp will add cookies from the request as cookie headers and then extract the matching cookies from the response. You can observe and extract response cookies using the `RestResponse.Cookies` properties, which has the `CookieCollection` type.