Thanks @nickva, that looks like the correct format.

I was curious at the phrase `Netscape's original proposal` in RFC2109, which 
implies that the date format specified there is not normative. RFC2109 also 
does not define another date format despite making normative statements such as

```
HTTP/1.1 servers must send Expires: old-date (where old-date is a date long in 
the past)
```

RFC2109 is obsoleted by [RFC2965](https://tools.ietf.org/html/rfc2965), which 
is in turn obsoleted by RFC6265. The former contains a reference to this 
undated Netscape proposal, which is no longer available at the cited URL but is 
hosted here:

https://curl.haxx.se/rfc/cookie_spec.html

```
The date string is formatted as:

Wdy, DD-Mon-YYYY HH:MM:SS GMT
This is based on RFC 822, RFC 850, RFC 1036, and RFC 1123, with the variations 
that the only legal time zone is GMT and the separators between the elements of 
the date must be dashes.
```

You may want to update the [Cloudant 
docs](https://console.bluemix.net/docs/services/Cloudant/api/authentication.html#cookie-authentication),
 since the example response uses the wrong format for `Expires`.

[ Full content available at: https://github.com/apache/couchdb/issues/1610 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to