-
Notifications
You must be signed in to change notification settings - Fork 4
/
532.txt
44 lines (29 loc) · 2.33 KB
/
532.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[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>
[2]
[[curl]] の対応しているのは3種類: [[名前と値の組を直接指定][cookie-string]]、
[[Netscape/Mozilla cookie file format]] ファイルで指定、
[CODE[Set-Cookie:]] [[HTTPヘッダー]]形式ファイルで指定。
[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>