Index of Chilkat Blog Posts
December 28, 2007
Question: How do you add explicit cookies to the HTTP header? I understand how to save and re-send cookies, but not how to add new cookies.
Answer: The AddHeader method can be called to add cookies to an HTTP header. A Cookie header has this format:
Cookie: name1=value1 [; name2=value2] ...
The values may be enclosed in quotes.
Here are some examples:
ASP: Adding Cookies to an HTTP GET Request SQL Server: Adding Cookies to an HTTP GET Request C#: Adding Cookies to an HTTP GET Request C++: Adding Cookies to an HTTP GET Request Delphi: Adding Cookies to an HTTP GET Request Visual FoxPro: Adding Cookies to an HTTP GET Request Java: Adding Cookies to an HTTP GET Request Perl: Adding Cookies to an HTTP GET Request Python: Adding Cookies to an HTTP GET Request Ruby: Adding Cookies to an HTTP GET Request VB.NET: Adding Cookies to an HTTP GET Request Visual Basic: Adding Cookies to an HTTP GET Request VBScript: Adding Cookies to an HTTP GET Request
Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved. Send feedback to support@chilkatsoft.com Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.