This article is a mirror article of machine translation, please click here to jump to the original article.

View: 19760|Reply: 1

[New Issue] HttpResult gets a set-cookie instead of a cookie

[Copy link]
Posted on 5/29/2019 10:40:12 AM | | | |
Why do I use HttpResult to get set-cookie instead of cookie, how can I get the value of the cookie?




Previous:C# Usage of yield keywords
Next:Website abroad open speed online test tool
Posted on 5/29/2019 9:37:32 PM |
The default lifetime of a cookie ends when the browser is closed. The domain name that can be accessed is under the created domain name and its subdomains, and the path that can be accessed is under the created path and its subpaths, which can be changed by setting the attributes

The Set-Cookie response header is returned by the serverResponse headA cookie used to store a cookie in the browser, once placed, will automatically bring this cookie when the browser accesses the eligible URL address


Set-Cookie: cookie1=val1; Expires=?; Domain=?; Path=?
set-cookie is actually a cookie, which contains a cookie, domain, expiration time, and path.

However, when you make a request, you only need to bring the cookie value, as shown in the figure below:



Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com