summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-02-18 14:23:04 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-02-19 08:04:35 +0100
commit67d26a361a6867eb7028c12c4d84bf7b93cb515c (patch)
tree86868f6419fdeedde9359a446e49846c11877e21 /docs
parent05b1b3508535bfe1fe6c8f76e7e8ddbda6f7b7d6 (diff)
downloadcurl-67d26a361a6867eb7028c12c4d84bf7b93cb515c.tar.gz
HTTP-COOKIES: mention that a trailing newline is required
... so that we know we got the whole and not a partial line. Also, changed the formatting of the fields away from a table again since the table format requires a github-markdown tool version that we don't run on the web server atm. Reported-by: Sunny Bean Fixes #4946 Closes #4947
Diffstat (limited to 'docs')
-rw-r--r--docs/HTTP-COOKIES.md25
1 files changed, 14 insertions, 11 deletions
diff --git a/docs/HTTP-COOKIES.md b/docs/HTTP-COOKIES.md
index 62367c2a9..31af9f6d9 100644
--- a/docs/HTTP-COOKIES.md
+++ b/docs/HTTP-COOKIES.md
@@ -49,17 +49,20 @@
that start with `#` are treated as comments.
Each line that each specifies a single cookie consists of seven text fields
- separated with TAB characters.
-
- |Field| Type | Example | Meaning |
- |---|---------|-------------|-----------------------------------------------|
- | 0 | string | example.com | Domain name |
- | 1 | boolean | FALSE | Include subdomains |
- | 2 | string | /foobar/ | Path |
- | 3 | boolean | TRUE | Send/receive over HTTPS only |
- | 4 | number | 1462299217 | Expires at – seconds since Jan 1st 1970, or 0 |
- | 5 | string | person | Name of the cookie |
- | 6 | string | daniel | Value of the cookie |
+ separated with TAB characters. A valid line must end with a newline
+ character.
+
+### Fields in the file
+
+ Field number, what type and example data and the meaning of it:
+
+ 0. string `example.com` - the domain name
+ 1. boolean `FALSE` - include subdomains
+ 2. string `/foobar/` - path
+ 3. boolean `TRUE` - send/receive over HTTPS only
+ 4. number `1462299217` - expires at - seconds since Jan 1st 1970, or 0
+ 5. string `person` - name of the cookie
+ 6. string `daniel` - value of the cookie
## Cookies with curl the command line tool