[13] 
[[Netscape Navigator]]
は[[クッキー]]を保存するために[[テキストファイル]]を使っていました。

[14] 
[[Lynx]],
[[wget]],
[[curl]]
など各種
[[HTTPクライアント]]がこの[[ファイル形式]]を採用しました。

[SEE[ 他のクッキー表現形式については[[クッキー]] ]]

[15] 
現在の主要な
[[Webブラウザー]]は独自形式で[[クッキー]]を保存するようになりました。

[16] 
かつては
[[Webブラウザー]]の
[[GUI]]
から
Netscape
形式で[[クッキーストア]]を[[エクスポート]]することもできましたが、
近年は省かれています。
ただ需要はあるようで、
そのような[[Chrome拡張]]や[[Firefox拡張]]が開発され利用されているようです。
[TIME[2020-10-01T12:33:00.200Z]]


[1] [CITE[curl - How To Use]], [TIME[2020-09-21T09:01:13.000Z]], [TIME[2020-10-01T06:00:34.414Z]] <https://curl.haxx.se/docs/manpage.html#-c>

[10] [CITE[CURLOPT_COOKIELIST]], [TIME[2020-09-09T12:45:07.000Z]], [TIME[2020-10-01T12:14:49.559Z]] <https://curl.haxx.se/libcurl/c/CURLOPT_COOKIELIST.html>

[11] [CITE[curl - HTTP Cookies]], [TIME[2020-09-21T09:01:13.000Z]], [TIME[2020-10-01T12:16:03.538Z]] <https://curl.haxx.se/docs/http-cookies.html>

[2] 
[[curl]] の対応しているのは3種類: [[名前と値の組を直接指定][cookie-string]]、
[[Netscape/Mozilla cookie file format]] ファイルで指定、
[CODE[Set-Cookie:]] [[HTTPヘッダー]]形式ファイルで指定。


[12] [CITE@en[curl/cookie.c at master · curl/curl · GitHub]], [TIME[2020-10-01T12:25:54.000Z]] <https://github.com/curl/curl/blob/master/lib/cookie.c>

[3] [CITE[curl - How To Use]], [TIME[2020-09-21T09:01:13.000Z]], [TIME[2020-10-01T06:18:54.907Z]] <https://curl.haxx.se/docs/manpage.html#-j>

[4] [CITE@en[GNU Wget 1.20 Manual]], [TIME[2020-10-01T07:20:18.000Z]] <https://www.gnu.org/software/wget/manual/wget.html#index-cookies>

[FIG(quote)[
[FIGCAPTION[
[5] [CITE@en[ytdl-org/youtube-dl: Command-line program to download videos from YouTube.com and other video sites]]
([TIME[2020-10-01T08:13:11.000Z]])
<https://github.com/ytdl-org/youtube-dl#filesystem-options>
]FIGCAPTION]

> --cookies FILE                   File to read cookies from and dump cookie
>                                  jar in

]FIG]


[FIG(quote)[
[FIGCAPTION[
[6] [CITE@en[ytdl-org/youtube-dl: Command-line program to download videos from YouTube.com and other video sites]]
([TIME[2020-10-01T08:15:11.000Z]])
<https://github.com/ytdl-org/youtube-dl#how-do-i-pass-cookies-to-youtube-dl>
]FIGCAPTION]

> Note that the cookies file must be in Mozilla/Netscape format and the first line of the cookies file must be either # HTTP Cookie File or # Netscape HTTP Cookie File. Make sure you have correct newline format in the cookies file and convert newlines if necessary to correspond with your OS, namely CRLF (\r\n) for Windows and LF (\n) for Unix and Unix-like systems (Linux, macOS, etc.). HTTP Error 400: Bad Request when using --cookies is a good sign of invalid newline format.

]FIG]


[7] [CITE[http.cookiejar — Cookie handling for HTTP clients — Python 3.10.0a0 documentation]], [TIME[2020-09-30T22:17:54.000Z]], [TIME[2020-10-01T08:19:48.209Z]] <https://docs.python.org/3.10/library/http.cookiejar.html#http.cookiejar.MozillaCookieJar>

[8] [CITE@en-US[HTTP::Cookies::Netscape - Access to Netscape cookies files - metacpan.org]], [TIME[2020-10-01T08:22:55.000Z]] <https://metacpan.org/pod/HTTP::Cookies::Netscape>

[9] [CITE@en[lynx(1) - Linux man page]]
([TIME[2020-10-01T08:27:45.000Z]])
<https://linux.die.net/man/1/lynx>

[17] [CITE[Cookieファイルについて]]
([TIME[2021-12-30T03:39:45.000Z]])
<http://www.openspc2.org/JavaScript/study/cookie.html>