tool_listhelp.c 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811
  1. /***************************************************************************
  2. * _ _ ____ _
  3. * Project ___| | | | _ \| |
  4. * / __| | | | |_) | |
  5. * | (__| |_| | _ <| |___
  6. * \___|\___/|_| \_\_____|
  7. *
  8. * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
  9. *
  10. * This software is licensed as described in the file COPYING, which
  11. * you should have received as part of this distribution. The terms
  12. * are also available at https://curl.se/docs/copyright.html.
  13. *
  14. * You may opt to use, copy, modify, merge, publish, distribute and/or sell
  15. * copies of the Software, and permit persons to whom the Software is
  16. * furnished to do so, under the terms of the COPYING file.
  17. *
  18. * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
  19. * KIND, either express or implied.
  20. *
  21. * SPDX-License-Identifier: curl
  22. *
  23. ***************************************************************************/
  24. #include "tool_setup.h"
  25. #include "tool_help.h"
  26. /*
  27. * DO NOT edit tool_listhelp.c manually.
  28. * This source file is generated with the following command:
  29. cd $srcroot/docs/cmdline-opts
  30. ./gen.pl listhelp *.d > $srcroot/src/tool_listhelp.c
  31. */
  32. const struct helptxt helptext[] = {
  33. {" --abstract-unix-socket <path>",
  34. "Connect via abstract Unix domain socket",
  35. CURLHELP_CONNECTION},
  36. {" --alt-svc <file name>",
  37. "Enable alt-svc with this cache file",
  38. CURLHELP_HTTP},
  39. {" --anyauth",
  40. "Pick any authentication method",
  41. CURLHELP_HTTP | CURLHELP_PROXY | CURLHELP_AUTH},
  42. {"-a, --append",
  43. "Append to target file when uploading",
  44. CURLHELP_FTP | CURLHELP_SFTP},
  45. {" --aws-sigv4 <provider1[:provider2[:region[:service]]]>",
  46. "Use AWS V4 signature authentication",
  47. CURLHELP_AUTH | CURLHELP_HTTP},
  48. {" --basic",
  49. "Use HTTP Basic Authentication",
  50. CURLHELP_AUTH},
  51. {" --ca-native",
  52. "Use CA certificates from the native OS",
  53. CURLHELP_TLS},
  54. {" --cacert <file>",
  55. "CA certificate to verify peer against",
  56. CURLHELP_TLS},
  57. {" --capath <dir>",
  58. "CA directory to verify peer against",
  59. CURLHELP_TLS},
  60. {"-E, --cert <certificate[:password]>",
  61. "Client certificate file and password",
  62. CURLHELP_TLS},
  63. {" --cert-status",
  64. "Verify the status of the server cert via OCSP-staple",
  65. CURLHELP_TLS},
  66. {" --cert-type <type>",
  67. "Certificate type (DER/PEM/ENG/P12)",
  68. CURLHELP_TLS},
  69. {" --ciphers <list of ciphers>",
  70. "SSL ciphers to use",
  71. CURLHELP_TLS},
  72. {" --compressed",
  73. "Request compressed response",
  74. CURLHELP_HTTP},
  75. {" --compressed-ssh",
  76. "Enable SSH compression",
  77. CURLHELP_SCP | CURLHELP_SSH},
  78. {"-K, --config <file>",
  79. "Read config from a file",
  80. CURLHELP_CURL},
  81. {" --connect-timeout <fractional seconds>",
  82. "Maximum time allowed for connection",
  83. CURLHELP_CONNECTION},
  84. {" --connect-to <HOST1:PORT1:HOST2:PORT2>",
  85. "Connect to host",
  86. CURLHELP_CONNECTION},
  87. {"-C, --continue-at <offset>",
  88. "Resumed transfer offset",
  89. CURLHELP_CONNECTION},
  90. {"-b, --cookie <data|filename>",
  91. "Send cookies from string/file",
  92. CURLHELP_HTTP},
  93. {"-c, --cookie-jar <filename>",
  94. "Write cookies to <filename> after operation",
  95. CURLHELP_HTTP},
  96. {" --create-dirs",
  97. "Create necessary local directory hierarchy",
  98. CURLHELP_CURL},
  99. {" --create-file-mode <mode>",
  100. "File mode for created files",
  101. CURLHELP_SFTP | CURLHELP_SCP | CURLHELP_FILE | CURLHELP_UPLOAD},
  102. {" --crlf",
  103. "Convert LF to CRLF in upload",
  104. CURLHELP_FTP | CURLHELP_SMTP},
  105. {" --crlfile <file>",
  106. "Use this CRL list",
  107. CURLHELP_TLS},
  108. {" --curves <algorithm list>",
  109. "(EC) TLS key exchange algorithm(s) to request",
  110. CURLHELP_TLS},
  111. {"-d, --data <data>",
  112. "HTTP POST data",
  113. CURLHELP_IMPORTANT | CURLHELP_HTTP | CURLHELP_POST | CURLHELP_UPLOAD},
  114. {" --data-ascii <data>",
  115. "HTTP POST ASCII data",
  116. CURLHELP_HTTP | CURLHELP_POST | CURLHELP_UPLOAD},
  117. {" --data-binary <data>",
  118. "HTTP POST binary data",
  119. CURLHELP_HTTP | CURLHELP_POST | CURLHELP_UPLOAD},
  120. {" --data-raw <data>",
  121. "HTTP POST data, '@' allowed",
  122. CURLHELP_HTTP | CURLHELP_POST | CURLHELP_UPLOAD},
  123. {" --data-urlencode <data>",
  124. "HTTP POST data URL encoded",
  125. CURLHELP_HTTP | CURLHELP_POST | CURLHELP_UPLOAD},
  126. {" --delegation <LEVEL>",
  127. "GSS-API delegation permission",
  128. CURLHELP_AUTH},
  129. {" --digest",
  130. "Use HTTP Digest Authentication",
  131. CURLHELP_PROXY | CURLHELP_AUTH | CURLHELP_HTTP},
  132. {"-q, --disable",
  133. "Disable .curlrc",
  134. CURLHELP_CURL},
  135. {" --disable-eprt",
  136. "Inhibit using EPRT or LPRT",
  137. CURLHELP_FTP},
  138. {" --disable-epsv",
  139. "Inhibit using EPSV",
  140. CURLHELP_FTP},
  141. {" --disallow-username-in-url",
  142. "Disallow username in URL",
  143. CURLHELP_CURL | CURLHELP_HTTP},
  144. {" --dns-interface <interface>",
  145. "Interface to use for DNS requests",
  146. CURLHELP_DNS},
  147. {" --dns-ipv4-addr <address>",
  148. "IPv4 address to use for DNS requests",
  149. CURLHELP_DNS},
  150. {" --dns-ipv6-addr <address>",
  151. "IPv6 address to use for DNS requests",
  152. CURLHELP_DNS},
  153. {" --dns-servers <addresses>",
  154. "DNS server addrs to use",
  155. CURLHELP_DNS},
  156. {" --doh-cert-status",
  157. "Verify the status of the DoH server cert via OCSP-staple",
  158. CURLHELP_DNS | CURLHELP_TLS},
  159. {" --doh-insecure",
  160. "Allow insecure DoH server connections",
  161. CURLHELP_DNS | CURLHELP_TLS},
  162. {" --doh-url <URL>",
  163. "Resolve host names over DoH",
  164. CURLHELP_DNS},
  165. {"-D, --dump-header <filename>",
  166. "Write the received headers to <filename>",
  167. CURLHELP_HTTP | CURLHELP_FTP},
  168. {" --egd-file <file>",
  169. "EGD socket path for random data",
  170. CURLHELP_TLS},
  171. {" --engine <name>",
  172. "Crypto engine to use",
  173. CURLHELP_TLS},
  174. {" --etag-compare <file>",
  175. "Pass an ETag from a file as a custom header",
  176. CURLHELP_HTTP},
  177. {" --etag-save <file>",
  178. "Parse ETag from a request and save it to a file",
  179. CURLHELP_HTTP},
  180. {" --expect100-timeout <seconds>",
  181. "How long to wait for 100-continue",
  182. CURLHELP_HTTP},
  183. {"-f, --fail",
  184. "Fail fast with no output on HTTP errors",
  185. CURLHELP_IMPORTANT | CURLHELP_HTTP},
  186. {" --fail-early",
  187. "Fail on first transfer error, do not continue",
  188. CURLHELP_CURL},
  189. {" --fail-with-body",
  190. "Fail on HTTP errors but save the body",
  191. CURLHELP_HTTP | CURLHELP_OUTPUT},
  192. {" --false-start",
  193. "Enable TLS False Start",
  194. CURLHELP_TLS},
  195. {"-F, --form <name=content>",
  196. "Specify multipart MIME data",
  197. CURLHELP_HTTP | CURLHELP_UPLOAD},
  198. {" --form-escape",
  199. "Escape multipart form field/file names using backslash",
  200. CURLHELP_HTTP | CURLHELP_UPLOAD},
  201. {" --form-string <name=string>",
  202. "Specify multipart MIME data",
  203. CURLHELP_HTTP | CURLHELP_UPLOAD},
  204. {" --ftp-account <data>",
  205. "Account data string",
  206. CURLHELP_FTP | CURLHELP_AUTH},
  207. {" --ftp-alternative-to-user <command>",
  208. "String to replace USER [name]",
  209. CURLHELP_FTP},
  210. {" --ftp-create-dirs",
  211. "Create the remote dirs if not present",
  212. CURLHELP_FTP | CURLHELP_SFTP | CURLHELP_CURL},
  213. {" --ftp-method <method>",
  214. "Control CWD usage",
  215. CURLHELP_FTP},
  216. {" --ftp-pasv",
  217. "Use PASV/EPSV instead of PORT",
  218. CURLHELP_FTP},
  219. {"-P, --ftp-port <address>",
  220. "Use PORT instead of PASV",
  221. CURLHELP_FTP},
  222. {" --ftp-pret",
  223. "Send PRET before PASV",
  224. CURLHELP_FTP},
  225. {" --ftp-skip-pasv-ip",
  226. "Skip the IP address for PASV",
  227. CURLHELP_FTP},
  228. {" --ftp-ssl-ccc",
  229. "Send CCC after authenticating",
  230. CURLHELP_FTP | CURLHELP_TLS},
  231. {" --ftp-ssl-ccc-mode <active/passive>",
  232. "Set CCC mode",
  233. CURLHELP_FTP | CURLHELP_TLS},
  234. {" --ftp-ssl-control",
  235. "Require SSL/TLS for FTP login, clear for transfer",
  236. CURLHELP_FTP | CURLHELP_TLS},
  237. {"-G, --get",
  238. "Put the post data in the URL and use GET",
  239. CURLHELP_HTTP | CURLHELP_UPLOAD},
  240. {"-g, --globoff",
  241. "Disable URL sequences and ranges using {} and []",
  242. CURLHELP_CURL},
  243. {" --happy-eyeballs-timeout-ms <milliseconds>",
  244. "Time for IPv6 before trying IPv4",
  245. CURLHELP_CONNECTION},
  246. {" --haproxy-clientip",
  247. "Sets client IP in HAProxy PROXY protocol v1 header",
  248. CURLHELP_HTTP | CURLHELP_PROXY},
  249. {" --haproxy-protocol",
  250. "Send HAProxy PROXY protocol v1 header",
  251. CURLHELP_HTTP | CURLHELP_PROXY},
  252. {"-I, --head",
  253. "Show document info only",
  254. CURLHELP_HTTP | CURLHELP_FTP | CURLHELP_FILE},
  255. {"-H, --header <header/@file>",
  256. "Pass custom header(s) to server",
  257. CURLHELP_HTTP | CURLHELP_IMAP | CURLHELP_SMTP},
  258. {"-h, --help <category>",
  259. "Get help for commands",
  260. CURLHELP_IMPORTANT | CURLHELP_CURL},
  261. {" --hostpubmd5 <md5>",
  262. "Acceptable MD5 hash of the host public key",
  263. CURLHELP_SFTP | CURLHELP_SCP},
  264. {" --hostpubsha256 <sha256>",
  265. "Acceptable SHA256 hash of the host public key",
  266. CURLHELP_SFTP | CURLHELP_SCP},
  267. {" --hsts <file name>",
  268. "Enable HSTS with this cache file",
  269. CURLHELP_HTTP},
  270. {" --http0.9",
  271. "Allow HTTP 0.9 responses",
  272. CURLHELP_HTTP},
  273. {"-0, --http1.0",
  274. "Use HTTP 1.0",
  275. CURLHELP_HTTP},
  276. {" --http1.1",
  277. "Use HTTP 1.1",
  278. CURLHELP_HTTP},
  279. {" --http2",
  280. "Use HTTP/2",
  281. CURLHELP_HTTP},
  282. {" --http2-prior-knowledge",
  283. "Use HTTP 2 without HTTP/1.1 Upgrade",
  284. CURLHELP_HTTP},
  285. {" --http3",
  286. "Use HTTP v3",
  287. CURLHELP_HTTP},
  288. {" --http3-only",
  289. "Use HTTP v3 only",
  290. CURLHELP_HTTP},
  291. {" --ignore-content-length",
  292. "Ignore the size of the remote resource",
  293. CURLHELP_HTTP | CURLHELP_FTP},
  294. {"-i, --include",
  295. "Include protocol response headers in the output",
  296. CURLHELP_IMPORTANT | CURLHELP_VERBOSE},
  297. {"-k, --insecure",
  298. "Allow insecure server connections",
  299. CURLHELP_TLS | CURLHELP_SFTP | CURLHELP_SCP},
  300. {" --interface <name>",
  301. "Use network INTERFACE (or address)",
  302. CURLHELP_CONNECTION},
  303. {" --ipfs-gateway <URL>",
  304. "Gateway for IPFS",
  305. CURLHELP_IPFS},
  306. {"-4, --ipv4",
  307. "Resolve names to IPv4 addresses",
  308. CURLHELP_CONNECTION | CURLHELP_DNS},
  309. {"-6, --ipv6",
  310. "Resolve names to IPv6 addresses",
  311. CURLHELP_CONNECTION | CURLHELP_DNS},
  312. {" --json <data>",
  313. "HTTP POST JSON",
  314. CURLHELP_HTTP | CURLHELP_POST | CURLHELP_UPLOAD},
  315. {"-j, --junk-session-cookies",
  316. "Ignore session cookies read from file",
  317. CURLHELP_HTTP},
  318. {" --keepalive-time <seconds>",
  319. "Interval time for keepalive probes",
  320. CURLHELP_CONNECTION},
  321. {" --key <key>",
  322. "Private key file name",
  323. CURLHELP_TLS | CURLHELP_SSH},
  324. {" --key-type <type>",
  325. "Private key file type (DER/PEM/ENG)",
  326. CURLHELP_TLS},
  327. {" --krb <level>",
  328. "Enable Kerberos with security <level>",
  329. CURLHELP_FTP},
  330. {" --libcurl <file>",
  331. "Dump libcurl equivalent code of this command line",
  332. CURLHELP_CURL},
  333. {" --limit-rate <speed>",
  334. "Limit transfer speed to RATE",
  335. CURLHELP_CONNECTION},
  336. {"-l, --list-only",
  337. "List only mode",
  338. CURLHELP_FTP | CURLHELP_POP3 | CURLHELP_SFTP},
  339. {" --local-port <num/range>",
  340. "Force use of RANGE for local port numbers",
  341. CURLHELP_CONNECTION},
  342. {"-L, --location",
  343. "Follow redirects",
  344. CURLHELP_HTTP},
  345. {" --location-trusted",
  346. "Like --location, and send auth to other hosts",
  347. CURLHELP_HTTP | CURLHELP_AUTH},
  348. {" --login-options <options>",
  349. "Server login options",
  350. CURLHELP_IMAP | CURLHELP_POP3 | CURLHELP_SMTP | CURLHELP_AUTH},
  351. {" --mail-auth <address>",
  352. "Originator address of the original email",
  353. CURLHELP_SMTP},
  354. {" --mail-from <address>",
  355. "Mail from this address",
  356. CURLHELP_SMTP},
  357. {" --mail-rcpt <address>",
  358. "Mail to this address",
  359. CURLHELP_SMTP},
  360. {" --mail-rcpt-allowfails",
  361. "Allow RCPT TO command to fail for some recipients",
  362. CURLHELP_SMTP},
  363. {"-M, --manual",
  364. "Display the full manual",
  365. CURLHELP_CURL},
  366. {" --max-filesize <bytes>",
  367. "Maximum file size to download",
  368. CURLHELP_CONNECTION},
  369. {" --max-redirs <num>",
  370. "Maximum number of redirects allowed",
  371. CURLHELP_HTTP},
  372. {"-m, --max-time <fractional seconds>",
  373. "Maximum time allowed for transfer",
  374. CURLHELP_CONNECTION},
  375. {" --metalink",
  376. "Process given URLs as metalink XML file",
  377. CURLHELP_MISC},
  378. {" --negotiate",
  379. "Use HTTP Negotiate (SPNEGO) authentication",
  380. CURLHELP_AUTH | CURLHELP_HTTP},
  381. {"-n, --netrc",
  382. "Must read .netrc for user name and password",
  383. CURLHELP_CURL},
  384. {" --netrc-file <filename>",
  385. "Specify FILE for netrc",
  386. CURLHELP_CURL},
  387. {" --netrc-optional",
  388. "Use either .netrc or URL",
  389. CURLHELP_CURL},
  390. {"-:, --next",
  391. "Make next URL use its separate set of options",
  392. CURLHELP_CURL},
  393. {" --no-alpn",
  394. "Disable the ALPN TLS extension",
  395. CURLHELP_TLS | CURLHELP_HTTP},
  396. {"-N, --no-buffer",
  397. "Disable buffering of the output stream",
  398. CURLHELP_CURL},
  399. {" --no-clobber",
  400. "Do not overwrite files that already exist",
  401. CURLHELP_CURL | CURLHELP_OUTPUT},
  402. {" --no-keepalive",
  403. "Disable TCP keepalive on the connection",
  404. CURLHELP_CONNECTION},
  405. {" --no-npn",
  406. "Disable the NPN TLS extension",
  407. CURLHELP_TLS | CURLHELP_HTTP},
  408. {" --no-progress-meter",
  409. "Do not show the progress meter",
  410. CURLHELP_VERBOSE},
  411. {" --no-sessionid",
  412. "Disable SSL session-ID reusing",
  413. CURLHELP_TLS},
  414. {" --noproxy <no-proxy-list>",
  415. "List of hosts which do not use proxy",
  416. CURLHELP_PROXY},
  417. {" --ntlm",
  418. "Use HTTP NTLM authentication",
  419. CURLHELP_AUTH | CURLHELP_HTTP},
  420. {" --ntlm-wb",
  421. "Use HTTP NTLM authentication with winbind",
  422. CURLHELP_AUTH | CURLHELP_HTTP},
  423. {" --oauth2-bearer <token>",
  424. "OAuth 2 Bearer Token",
  425. CURLHELP_AUTH},
  426. {"-o, --output <file>",
  427. "Write to file instead of stdout",
  428. CURLHELP_IMPORTANT | CURLHELP_CURL},
  429. {" --output-dir <dir>",
  430. "Directory to save files in",
  431. CURLHELP_CURL},
  432. {"-Z, --parallel",
  433. "Perform transfers in parallel",
  434. CURLHELP_CONNECTION | CURLHELP_CURL},
  435. {" --parallel-immediate",
  436. "Do not wait for multiplexing (with --parallel)",
  437. CURLHELP_CONNECTION | CURLHELP_CURL},
  438. {" --parallel-max <num>",
  439. "Maximum concurrency for parallel transfers",
  440. CURLHELP_CONNECTION | CURLHELP_CURL},
  441. {" --pass <phrase>",
  442. "Pass phrase for the private key",
  443. CURLHELP_SSH | CURLHELP_TLS | CURLHELP_AUTH},
  444. {" --path-as-is",
  445. "Do not squash .. sequences in URL path",
  446. CURLHELP_CURL},
  447. {" --pinnedpubkey <hashes>",
  448. "FILE/HASHES Public key to verify peer against",
  449. CURLHELP_TLS},
  450. {" --post301",
  451. "Do not switch to GET after following a 301",
  452. CURLHELP_HTTP | CURLHELP_POST},
  453. {" --post302",
  454. "Do not switch to GET after following a 302",
  455. CURLHELP_HTTP | CURLHELP_POST},
  456. {" --post303",
  457. "Do not switch to GET after following a 303",
  458. CURLHELP_HTTP | CURLHELP_POST},
  459. {" --preproxy [protocol://]host[:port]",
  460. "Use this proxy first",
  461. CURLHELP_PROXY},
  462. {"-#, --progress-bar",
  463. "Display transfer progress as a bar",
  464. CURLHELP_VERBOSE},
  465. {" --proto <protocols>",
  466. "Enable/disable PROTOCOLS",
  467. CURLHELP_CONNECTION | CURLHELP_CURL},
  468. {" --proto-default <protocol>",
  469. "Use PROTOCOL for any URL missing a scheme",
  470. CURLHELP_CONNECTION | CURLHELP_CURL},
  471. {" --proto-redir <protocols>",
  472. "Enable/disable PROTOCOLS on redirect",
  473. CURLHELP_CONNECTION | CURLHELP_CURL},
  474. {"-x, --proxy [protocol://]host[:port]",
  475. "Use this proxy",
  476. CURLHELP_PROXY},
  477. {" --proxy-anyauth",
  478. "Pick any proxy authentication method",
  479. CURLHELP_PROXY | CURLHELP_AUTH},
  480. {" --proxy-basic",
  481. "Use Basic authentication on the proxy",
  482. CURLHELP_PROXY | CURLHELP_AUTH},
  483. {" --proxy-ca-native",
  484. "Use CA certificates from the native OS for proxy",
  485. CURLHELP_TLS},
  486. {" --proxy-cacert <file>",
  487. "CA certificate to verify peer against for proxy",
  488. CURLHELP_PROXY | CURLHELP_TLS},
  489. {" --proxy-capath <dir>",
  490. "CA directory to verify peer against for proxy",
  491. CURLHELP_PROXY | CURLHELP_TLS},
  492. {" --proxy-cert <cert[:passwd]>",
  493. "Set client certificate for proxy",
  494. CURLHELP_PROXY | CURLHELP_TLS},
  495. {" --proxy-cert-type <type>",
  496. "Client certificate type for HTTPS proxy",
  497. CURLHELP_PROXY | CURLHELP_TLS},
  498. {" --proxy-ciphers <list>",
  499. "SSL ciphers to use for proxy",
  500. CURLHELP_PROXY | CURLHELP_TLS},
  501. {" --proxy-crlfile <file>",
  502. "Set a CRL list for proxy",
  503. CURLHELP_PROXY | CURLHELP_TLS},
  504. {" --proxy-digest",
  505. "Use Digest authentication on the proxy",
  506. CURLHELP_PROXY | CURLHELP_TLS},
  507. {" --proxy-header <header/@file>",
  508. "Pass custom header(s) to proxy",
  509. CURLHELP_PROXY},
  510. {" --proxy-http2",
  511. "Use HTTP/2 with HTTPS proxy",
  512. CURLHELP_HTTP | CURLHELP_PROXY},
  513. {" --proxy-insecure",
  514. "Do HTTPS proxy connections without verifying the proxy",
  515. CURLHELP_PROXY | CURLHELP_TLS},
  516. {" --proxy-key <key>",
  517. "Private key for HTTPS proxy",
  518. CURLHELP_PROXY | CURLHELP_TLS},
  519. {" --proxy-key-type <type>",
  520. "Private key file type for proxy",
  521. CURLHELP_PROXY | CURLHELP_TLS},
  522. {" --proxy-negotiate",
  523. "Use HTTP Negotiate (SPNEGO) authentication on the proxy",
  524. CURLHELP_PROXY | CURLHELP_AUTH},
  525. {" --proxy-ntlm",
  526. "Use NTLM authentication on the proxy",
  527. CURLHELP_PROXY | CURLHELP_AUTH},
  528. {" --proxy-pass <phrase>",
  529. "Pass phrase for the private key for HTTPS proxy",
  530. CURLHELP_PROXY | CURLHELP_TLS | CURLHELP_AUTH},
  531. {" --proxy-pinnedpubkey <hashes>",
  532. "FILE/HASHES public key to verify proxy with",
  533. CURLHELP_PROXY | CURLHELP_TLS},
  534. {" --proxy-service-name <name>",
  535. "SPNEGO proxy service name",
  536. CURLHELP_PROXY | CURLHELP_TLS},
  537. {" --proxy-ssl-allow-beast",
  538. "Allow security flaw for interop for HTTPS proxy",
  539. CURLHELP_PROXY | CURLHELP_TLS},
  540. {" --proxy-ssl-auto-client-cert",
  541. "Use auto client certificate for proxy (Schannel)",
  542. CURLHELP_PROXY | CURLHELP_TLS},
  543. {" --proxy-tls13-ciphers <ciphersuite list>",
  544. "TLS 1.3 proxy cipher suites",
  545. CURLHELP_PROXY | CURLHELP_TLS},
  546. {" --proxy-tlsauthtype <type>",
  547. "TLS authentication type for HTTPS proxy",
  548. CURLHELP_PROXY | CURLHELP_TLS | CURLHELP_AUTH},
  549. {" --proxy-tlspassword <string>",
  550. "TLS password for HTTPS proxy",
  551. CURLHELP_PROXY | CURLHELP_TLS | CURLHELP_AUTH},
  552. {" --proxy-tlsuser <name>",
  553. "TLS username for HTTPS proxy",
  554. CURLHELP_PROXY | CURLHELP_TLS | CURLHELP_AUTH},
  555. {" --proxy-tlsv1",
  556. "Use TLSv1 for HTTPS proxy",
  557. CURLHELP_PROXY | CURLHELP_TLS | CURLHELP_AUTH},
  558. {"-U, --proxy-user <user:password>",
  559. "Proxy user and password",
  560. CURLHELP_PROXY | CURLHELP_AUTH},
  561. {" --proxy1.0 <host[:port]>",
  562. "Use HTTP/1.0 proxy on given port",
  563. CURLHELP_PROXY},
  564. {"-p, --proxytunnel",
  565. "Operate through an HTTP proxy tunnel (using CONNECT)",
  566. CURLHELP_PROXY},
  567. {" --pubkey <key>",
  568. "SSH Public key file name",
  569. CURLHELP_SFTP | CURLHELP_SCP | CURLHELP_AUTH},
  570. {"-Q, --quote <command>",
  571. "Send command(s) to server before transfer",
  572. CURLHELP_FTP | CURLHELP_SFTP},
  573. {" --random-file <file>",
  574. "File for reading random data from",
  575. CURLHELP_MISC},
  576. {"-r, --range <range>",
  577. "Retrieve only the bytes within RANGE",
  578. CURLHELP_HTTP | CURLHELP_FTP | CURLHELP_SFTP | CURLHELP_FILE},
  579. {" --rate <max request rate>",
  580. "Request rate for serial transfers",
  581. CURLHELP_CONNECTION},
  582. {" --raw",
  583. "Do HTTP \"raw\"; no transfer decoding",
  584. CURLHELP_HTTP},
  585. {"-e, --referer <URL>",
  586. "Referrer URL",
  587. CURLHELP_HTTP},
  588. {"-J, --remote-header-name",
  589. "Use the header-provided filename",
  590. CURLHELP_OUTPUT},
  591. {"-O, --remote-name",
  592. "Write output to a file named as the remote file",
  593. CURLHELP_IMPORTANT | CURLHELP_OUTPUT},
  594. {" --remote-name-all",
  595. "Use the remote file name for all URLs",
  596. CURLHELP_OUTPUT},
  597. {"-R, --remote-time",
  598. "Set the remote file's time on the local output",
  599. CURLHELP_OUTPUT},
  600. {" --remove-on-error",
  601. "Remove output file on errors",
  602. CURLHELP_CURL},
  603. {"-X, --request <method>",
  604. "Specify request method to use",
  605. CURLHELP_CONNECTION},
  606. {" --request-target <path>",
  607. "Specify the target for this request",
  608. CURLHELP_HTTP},
  609. {" --resolve <[+]host:port:addr[,addr]...>",
  610. "Resolve the host+port to this address",
  611. CURLHELP_CONNECTION | CURLHELP_DNS},
  612. {" --retry <num>",
  613. "Retry request if transient problems occur",
  614. CURLHELP_CURL},
  615. {" --retry-all-errors",
  616. "Retry all errors (use with --retry)",
  617. CURLHELP_CURL},
  618. {" --retry-connrefused",
  619. "Retry on connection refused (use with --retry)",
  620. CURLHELP_CURL},
  621. {" --retry-delay <seconds>",
  622. "Wait time between retries",
  623. CURLHELP_CURL},
  624. {" --retry-max-time <seconds>",
  625. "Retry only within this period",
  626. CURLHELP_CURL},
  627. {" --sasl-authzid <identity>",
  628. "Identity for SASL PLAIN authentication",
  629. CURLHELP_AUTH},
  630. {" --sasl-ir",
  631. "Enable initial response in SASL authentication",
  632. CURLHELP_AUTH},
  633. {" --service-name <name>",
  634. "SPNEGO service name",
  635. CURLHELP_MISC},
  636. {"-S, --show-error",
  637. "Show error even when -s is used",
  638. CURLHELP_CURL},
  639. {"-s, --silent",
  640. "Silent mode",
  641. CURLHELP_IMPORTANT | CURLHELP_VERBOSE},
  642. {" --socks4 <host[:port]>",
  643. "SOCKS4 proxy on given host + port",
  644. CURLHELP_PROXY},
  645. {" --socks4a <host[:port]>",
  646. "SOCKS4a proxy on given host + port",
  647. CURLHELP_PROXY},
  648. {" --socks5 <host[:port]>",
  649. "SOCKS5 proxy on given host + port",
  650. CURLHELP_PROXY},
  651. {" --socks5-basic",
  652. "Enable username/password auth for SOCKS5 proxies",
  653. CURLHELP_PROXY | CURLHELP_AUTH},
  654. {" --socks5-gssapi",
  655. "Enable GSS-API auth for SOCKS5 proxies",
  656. CURLHELP_PROXY | CURLHELP_AUTH},
  657. {" --socks5-gssapi-nec",
  658. "Compatibility with NEC SOCKS5 server",
  659. CURLHELP_PROXY | CURLHELP_AUTH},
  660. {" --socks5-gssapi-service <name>",
  661. "SOCKS5 proxy service name for GSS-API",
  662. CURLHELP_PROXY | CURLHELP_AUTH},
  663. {" --socks5-hostname <host[:port]>",
  664. "SOCKS5 proxy, pass host name to proxy",
  665. CURLHELP_PROXY},
  666. {"-Y, --speed-limit <speed>",
  667. "Stop transfers slower than this",
  668. CURLHELP_CONNECTION},
  669. {"-y, --speed-time <seconds>",
  670. "Trigger 'speed-limit' abort after this time",
  671. CURLHELP_CONNECTION},
  672. {" --ssl",
  673. "Try SSL/TLS",
  674. CURLHELP_TLS},
  675. {" --ssl-allow-beast",
  676. "Allow security flaw to improve interop",
  677. CURLHELP_TLS},
  678. {" --ssl-auto-client-cert",
  679. "Use auto client certificate (Schannel)",
  680. CURLHELP_TLS},
  681. {" --ssl-no-revoke",
  682. "Disable cert revocation checks (Schannel)",
  683. CURLHELP_TLS},
  684. {" --ssl-reqd",
  685. "Require SSL/TLS",
  686. CURLHELP_TLS},
  687. {" --ssl-revoke-best-effort",
  688. "Ignore missing/offline cert CRL dist points (Schannel)",
  689. CURLHELP_TLS},
  690. {"-2, --sslv2",
  691. "Use SSLv2",
  692. CURLHELP_TLS},
  693. {"-3, --sslv3",
  694. "Use SSLv3",
  695. CURLHELP_TLS},
  696. {" --stderr <file>",
  697. "Where to redirect stderr",
  698. CURLHELP_VERBOSE},
  699. {" --styled-output",
  700. "Enable styled output for HTTP headers",
  701. CURLHELP_VERBOSE},
  702. {" --suppress-connect-headers",
  703. "Suppress proxy CONNECT response headers",
  704. CURLHELP_PROXY},
  705. {" --tcp-fastopen",
  706. "Use TCP Fast Open",
  707. CURLHELP_CONNECTION},
  708. {" --tcp-nodelay",
  709. "Use the TCP_NODELAY option",
  710. CURLHELP_CONNECTION},
  711. {"-t, --telnet-option <opt=val>",
  712. "Set telnet option",
  713. CURLHELP_TELNET},
  714. {" --tftp-blksize <value>",
  715. "Set TFTP BLKSIZE option",
  716. CURLHELP_TFTP},
  717. {" --tftp-no-options",
  718. "Do not send any TFTP options",
  719. CURLHELP_TFTP},
  720. {"-z, --time-cond <time>",
  721. "Transfer based on a time condition",
  722. CURLHELP_HTTP | CURLHELP_FTP},
  723. {" --tls-max <VERSION>",
  724. "Set maximum allowed TLS version",
  725. CURLHELP_TLS},
  726. {" --tls13-ciphers <ciphersuite list>",
  727. "TLS 1.3 cipher suites to use",
  728. CURLHELP_TLS},
  729. {" --tlsauthtype <type>",
  730. "TLS authentication type",
  731. CURLHELP_TLS | CURLHELP_AUTH},
  732. {" --tlspassword <string>",
  733. "TLS password",
  734. CURLHELP_TLS | CURLHELP_AUTH},
  735. {" --tlsuser <name>",
  736. "TLS user name",
  737. CURLHELP_TLS | CURLHELP_AUTH},
  738. {"-1, --tlsv1",
  739. "Use TLSv1.0 or greater",
  740. CURLHELP_TLS},
  741. {" --tlsv1.0",
  742. "Use TLSv1.0 or greater",
  743. CURLHELP_TLS},
  744. {" --tlsv1.1",
  745. "Use TLSv1.1 or greater",
  746. CURLHELP_TLS},
  747. {" --tlsv1.2",
  748. "Use TLSv1.2 or greater",
  749. CURLHELP_TLS},
  750. {" --tlsv1.3",
  751. "Use TLSv1.3 or greater",
  752. CURLHELP_TLS},
  753. {" --tr-encoding",
  754. "Request compressed transfer encoding",
  755. CURLHELP_HTTP},
  756. {" --trace <file>",
  757. "Write a debug trace to FILE",
  758. CURLHELP_VERBOSE},
  759. {" --trace-ascii <file>",
  760. "Like --trace, but without hex output",
  761. CURLHELP_VERBOSE},
  762. {" --trace-config <string>",
  763. "Details to log in trace/verbose output",
  764. CURLHELP_VERBOSE},
  765. {" --trace-ids",
  766. "Add transfer and connection identifiers to trace/verbose output",
  767. CURLHELP_VERBOSE},
  768. {" --trace-time",
  769. "Add time stamps to trace/verbose output",
  770. CURLHELP_VERBOSE},
  771. {" --unix-socket <path>",
  772. "Connect through this Unix domain socket",
  773. CURLHELP_CONNECTION},
  774. {"-T, --upload-file <file>",
  775. "Transfer local FILE to destination",
  776. CURLHELP_IMPORTANT | CURLHELP_UPLOAD},
  777. {" --url <url>",
  778. "URL to work with",
  779. CURLHELP_CURL},
  780. {" --url-query <data>",
  781. "Add a URL query part",
  782. CURLHELP_HTTP | CURLHELP_POST | CURLHELP_UPLOAD},
  783. {"-B, --use-ascii",
  784. "Use ASCII/text transfer",
  785. CURLHELP_MISC},
  786. {"-u, --user <user:password>",
  787. "Server user and password",
  788. CURLHELP_IMPORTANT | CURLHELP_AUTH},
  789. {"-A, --user-agent <name>",
  790. "Send User-Agent <name> to server",
  791. CURLHELP_IMPORTANT | CURLHELP_HTTP},
  792. {" --variable <[%]name=text/@file>",
  793. "Set variable",
  794. CURLHELP_CURL},
  795. {"-v, --verbose",
  796. "Make the operation more talkative",
  797. CURLHELP_IMPORTANT | CURLHELP_VERBOSE},
  798. {"-V, --version",
  799. "Show version number and quit",
  800. CURLHELP_IMPORTANT | CURLHELP_CURL},
  801. {"-w, --write-out <format>",
  802. "Use output FORMAT after completion",
  803. CURLHELP_VERBOSE},
  804. {" --xattr",
  805. "Store metadata in extended file attributes",
  806. CURLHELP_MISC},
  807. { NULL, NULL, CURLHELP_HIDDEN }
  808. };