blob: 6f5ad08d4a29e926bb6896c3c1c3a3e5da2b4d95 [file] [log] [blame]
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -07001/***************************************************************************
2 * _ _ ____ _
3 * Project ___| | | | _ \| |
4 * / __| | | | |_) | |
5 * | (__| |_| | _ <| |___
6 * \___|\___/|_| \_\_____|
7 *
Elliott Hughescac39802018-04-27 16:19:43 -07008 * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -07009 *
10 * This software is licensed as described in the file COPYING, which
11 * you should have received as part of this distribution. The terms
Alex Deymo8f1a2142016-06-28 14:49:26 -070012 * are also available at https://curl.haxx.se/docs/copyright.html.
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070013 *
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 ***************************************************************************/
22#include "tool_setup.h"
23
24#include "tool_panykey.h"
25#include "tool_help.h"
26#include "tool_libinfo.h"
27#include "tool_version.h"
28
29#include "memdebug.h" /* keep this as LAST include */
30
31#ifdef MSDOS
32# define USE_WATT32
33#endif
34
35/*
Elliott Hughes82be86d2017-09-20 17:00:17 -070036 * The help output is generated with the following command
37 ---------------------------------------------------------
38
39 cd $srcroot/docs/cmdline-opts
40 ./gen.pl listhelp
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -070041 */
42
Elliott Hughes82be86d2017-09-20 17:00:17 -070043struct helptxt {
44 const char *opt;
45 const char *desc;
46};
47
48static const struct helptxt helptext[] = {
49 {" --abstract-unix-socket <path>",
50 "Connect via abstract Unix domain socket"},
51 {" --anyauth",
52 "Pick any authentication method"},
53 {"-a, --append",
54 "Append to target file when uploading"},
55 {" --basic",
56 "Use HTTP Basic Authentication"},
Alex Deymo486467e2017-12-19 19:04:07 +010057 {" --cacert <file>",
Elliott Hughes82be86d2017-09-20 17:00:17 -070058 "CA certificate to verify peer against"},
59 {" --capath <dir>",
60 "CA directory to verify peer against"},
61 {"-E, --cert <certificate[:password]>",
62 "Client certificate file and password"},
63 {" --cert-status",
64 "Verify the status of the server certificate"},
65 {" --cert-type <type>",
66 "Certificate file type (DER/PEM/ENG)"},
67 {" --ciphers <list of ciphers>",
68 "SSL ciphers to use"},
69 {" --compressed",
70 "Request compressed response"},
Alex Deymo486467e2017-12-19 19:04:07 +010071 {" --compressed-ssh",
72 "Enable SSH compression"},
Elliott Hughes82be86d2017-09-20 17:00:17 -070073 {"-K, --config <file>",
74 "Read config from a file"},
75 {" --connect-timeout <seconds>",
76 "Maximum time allowed for connection"},
77 {" --connect-to <HOST1:PORT1:HOST2:PORT2>",
78 "Connect to host"},
79 {"-C, --continue-at <offset>",
80 "Resumed transfer offset"},
81 {"-b, --cookie <data>",
82 "Send cookies from string/file"},
83 {"-c, --cookie-jar <filename>",
84 "Write cookies to <filename> after operation"},
85 {" --create-dirs",
86 "Create necessary local directory hierarchy"},
87 {" --crlf",
88 "Convert LF to CRLF in upload"},
89 {" --crlfile <file>",
90 "Get a CRL list in PEM format from the given file"},
91 {"-d, --data <data>",
92 "HTTP POST data"},
93 {" --data-ascii <data>",
94 "HTTP POST ASCII data"},
95 {" --data-binary <data>",
96 "HTTP POST binary data"},
97 {" --data-raw <data>",
98 "HTTP POST data, '@' allowed"},
99 {" --data-urlencode <data>",
100 "HTTP POST data url encoded"},
101 {" --delegation <LEVEL>",
102 "GSS-API delegation permission"},
103 {" --digest",
104 "Use HTTP Digest Authentication"},
105 {"-q, --disable",
106 "Disable .curlrc"},
107 {" --disable-eprt",
108 "Inhibit using EPRT or LPRT"},
109 {" --disable-epsv",
110 "Inhibit using EPSV"},
111 {" --dns-interface <interface>",
112 "Interface to use for DNS requests"},
113 {" --dns-ipv4-addr <address>",
114 "IPv4 address to use for DNS requests"},
115 {" --dns-ipv6-addr <address>",
116 "IPv6 address to use for DNS requests"},
117 {" --dns-servers <addresses>",
118 "DNS server addrs to use"},
119 {"-D, --dump-header <filename>",
120 "Write the received headers to <filename>"},
121 {" --egd-file <file>",
122 "EGD socket path for random data"},
123 {" --engine <name>",
124 "Crypto engine to use"},
125 {" --expect100-timeout <seconds>",
126 "How long to wait for 100-continue"},
127 {"-f, --fail",
128 "Fail silently (no output at all) on HTTP errors"},
129 {" --fail-early",
130 "Fail on first transfer error, do not continue"},
131 {" --false-start",
132 "Enable TLS False Start"},
133 {"-F, --form <name=content>",
Alex Deymo486467e2017-12-19 19:04:07 +0100134 "Specify multipart MIME data"},
Elliott Hughes82be86d2017-09-20 17:00:17 -0700135 {" --form-string <name=string>",
Alex Deymo486467e2017-12-19 19:04:07 +0100136 "Specify multipart MIME data"},
Elliott Hughes82be86d2017-09-20 17:00:17 -0700137 {" --ftp-account <data>",
138 "Account data string"},
139 {" --ftp-alternative-to-user <command>",
140 "String to replace USER [name]"},
141 {" --ftp-create-dirs",
142 "Create the remote dirs if not present"},
143 {" --ftp-method <method>",
144 "Control CWD usage"},
145 {" --ftp-pasv",
146 "Use PASV/EPSV instead of PORT"},
147 {"-P, --ftp-port <address>",
148 "Use PORT instead of PASV"},
149 {" --ftp-pret",
150 "Send PRET before PASV"},
151 {" --ftp-skip-pasv-ip",
152 "Skip the IP address for PASV"},
153 {" --ftp-ssl-ccc",
154 "Send CCC after authenticating"},
155 {" --ftp-ssl-ccc-mode <active/passive>",
156 "Set CCC mode"},
157 {" --ftp-ssl-control",
158 "Require SSL/TLS for FTP login, clear for transfer"},
159 {"-G, --get",
160 "Put the post data in the URL and use GET"},
161 {"-g, --globoff",
162 "Disable URL sequences and ranges using {} and []"},
Elliott Hughescac39802018-04-27 16:19:43 -0700163 {" --happy-eyeballs-timeout-ms",
164 "How long to wait in milliseconds for IPv6 before trying IPv4"},
Elliott Hughes82be86d2017-09-20 17:00:17 -0700165 {"-I, --head",
166 "Show document info only"},
Elliott Hughes1ef06ba2018-05-30 15:43:58 -0700167 {" --haproxy-protocol",
168 "Send HAProxy PROXY protocol header"},
Elliott Hughes82be86d2017-09-20 17:00:17 -0700169 {"-H, --header <header/@file>",
170 "Pass custom header(s) to server"},
171 {"-h, --help",
172 "This help text"},
173 {" --hostpubmd5 <md5>",
174 "Acceptable MD5 hash of the host public key"},
175 {"-0, --http1.0",
176 "Use HTTP 1.0"},
177 {" --http1.1",
178 "Use HTTP 1.1"},
179 {" --http2",
180 "Use HTTP 2"},
181 {" --http2-prior-knowledge",
182 "Use HTTP 2 without HTTP/1.1 Upgrade"},
183 {" --ignore-content-length",
184 "Ignore the size of the remote resource"},
185 {"-i, --include",
186 "Include protocol response headers in the output"},
187 {"-k, --insecure",
188 "Allow insecure server connections when using SSL"},
189 {" --interface <name>",
190 "Use network INTERFACE (or address)"},
191 {"-4, --ipv4",
192 "Resolve names to IPv4 addresses"},
193 {"-6, --ipv6",
194 "Resolve names to IPv6 addresses"},
195 {"-j, --junk-session-cookies",
196 "Ignore session cookies read from file"},
197 {" --keepalive-time <seconds>",
198 "Interval time for keepalive probes"},
199 {" --key <key>",
200 "Private key file name"},
201 {" --key-type <type>",
202 "Private key file type (DER/PEM/ENG)"},
203 {" --krb <level>",
204 "Enable Kerberos with security <level>"},
205 {" --libcurl <file>",
206 "Dump libcurl equivalent code of this command line"},
207 {" --limit-rate <speed>",
208 "Limit transfer speed to RATE"},
209 {"-l, --list-only",
210 "List only mode"},
211 {" --local-port <num/range>",
212 "Force use of RANGE for local port numbers"},
213 {"-L, --location",
214 "Follow redirects"},
215 {" --location-trusted",
216 "Like --location, and send auth to other hosts"},
217 {" --login-options <options>",
218 "Server login options"},
219 {" --mail-auth <address>",
220 "Originator address of the original email"},
221 {" --mail-from <address>",
222 "Mail from this address"},
223 {" --mail-rcpt <address>",
Elliott Hughes0128fe42018-02-27 14:57:55 -0800224 "Mail to this address"},
Elliott Hughes82be86d2017-09-20 17:00:17 -0700225 {"-M, --manual",
226 "Display the full manual"},
227 {" --max-filesize <bytes>",
228 "Maximum file size to download"},
229 {" --max-redirs <num>",
230 "Maximum number of redirects allowed"},
Elliott Hughes1ef06ba2018-05-30 15:43:58 -0700231 {"-m, --max-time <seconds>",
Elliott Hughes82be86d2017-09-20 17:00:17 -0700232 "Maximum time allowed for the transfer"},
233 {" --metalink",
234 "Process given URLs as metalink XML file"},
235 {" --negotiate",
236 "Use HTTP Negotiate (SPNEGO) authentication"},
237 {"-n, --netrc",
238 "Must read .netrc for user name and password"},
239 {" --netrc-file <filename>",
240 "Specify FILE for netrc"},
241 {" --netrc-optional",
242 "Use either .netrc or URL"},
243 {"-:, --next",
244 "Make next URL use its separate set of options"},
245 {" --no-alpn",
246 "Disable the ALPN TLS extension"},
247 {"-N, --no-buffer",
248 "Disable buffering of the output stream"},
249 {" --no-keepalive",
250 "Disable TCP keepalive on the connection"},
251 {" --no-npn",
252 "Disable the NPN TLS extension"},
253 {" --no-sessionid",
254 "Disable SSL session-ID reusing"},
255 {" --noproxy <no-proxy-list>",
256 "List of hosts which do not use proxy"},
257 {" --ntlm",
258 "Use HTTP NTLM authentication"},
259 {" --ntlm-wb",
260 "Use HTTP NTLM authentication with winbind"},
261 {" --oauth2-bearer <token>",
262 "OAuth 2 Bearer Token"},
263 {"-o, --output <file>",
264 "Write to file instead of stdout"},
265 {" --pass <phrase>",
266 "Pass phrase for the private key"},
267 {" --path-as-is",
268 "Do not squash .. sequences in URL path"},
269 {" --pinnedpubkey <hashes>",
270 "FILE/HASHES Public key to verify peer against"},
271 {" --post301",
272 "Do not switch to GET after following a 301"},
273 {" --post302",
274 "Do not switch to GET after following a 302"},
275 {" --post303",
276 "Do not switch to GET after following a 303"},
277 {" --preproxy [protocol://]host[:port]",
278 "Use this proxy first"},
279 {"-#, --progress-bar",
280 "Display transfer progress as a bar"},
281 {" --proto <protocols>",
282 "Enable/disable PROTOCOLS"},
283 {" --proto-default <protocol>",
284 "Use PROTOCOL for any URL missing a scheme"},
285 {" --proto-redir <protocols>",
286 "Enable/disable PROTOCOLS on redirect"},
287 {"-x, --proxy [protocol://]host[:port]",
288 "Use this proxy"},
289 {" --proxy-anyauth",
290 "Pick any proxy authentication method"},
291 {" --proxy-basic",
292 "Use Basic authentication on the proxy"},
293 {" --proxy-cacert <file>",
294 "CA certificate to verify peer against for proxy"},
295 {" --proxy-capath <dir>",
296 "CA directory to verify peer against for proxy"},
297 {" --proxy-cert <cert[:passwd]>",
298 "Set client certificate for proxy"},
299 {" --proxy-cert-type <type>",
300 "Client certificate type for HTTS proxy"},
301 {" --proxy-ciphers <list>",
302 "SSL ciphers to use for proxy"},
303 {" --proxy-crlfile <file>",
304 "Set a CRL list for proxy"},
305 {" --proxy-digest",
306 "Use Digest authentication on the proxy"},
307 {" --proxy-header <header/@file>",
308 "Pass custom header(s) to proxy"},
309 {" --proxy-insecure",
310 "Do HTTPS proxy connections without verifying the proxy"},
311 {" --proxy-key <key>",
312 "Private key for HTTPS proxy"},
313 {" --proxy-key-type <type>",
314 "Private key file type for proxy"},
315 {" --proxy-negotiate",
316 "Use HTTP Negotiate (SPNEGO) authentication on the proxy"},
317 {" --proxy-ntlm",
318 "Use NTLM authentication on the proxy"},
319 {" --proxy-pass <phrase>",
320 "Pass phrase for the private key for HTTPS proxy"},
Elliott Hughescac39802018-04-27 16:19:43 -0700321 {" --proxy-pinnedpubkey <hashes>",
322 "FILE/HASHES public key to verify proxy with"},
Elliott Hughes82be86d2017-09-20 17:00:17 -0700323 {" --proxy-service-name <name>",
324 "SPNEGO proxy service name"},
325 {" --proxy-ssl-allow-beast",
326 "Allow security flaw for interop for HTTPS proxy"},
327 {" --proxy-tlsauthtype <type>",
328 "TLS authentication type for HTTPS proxy"},
329 {" --proxy-tlspassword <string>",
330 "TLS password for HTTPS proxy"},
331 {" --proxy-tlsuser <name>",
332 "TLS username for HTTPS proxy"},
333 {" --proxy-tlsv1",
334 "Use TLSv1 for HTTPS proxy"},
335 {"-U, --proxy-user <user:password>",
336 "Proxy user and password"},
337 {" --proxy1.0 <host[:port]>",
338 "Use HTTP/1.0 proxy on given port"},
339 {"-p, --proxytunnel",
340 "Operate through a HTTP proxy tunnel (using CONNECT)"},
341 {" --pubkey <key>",
342 "SSH Public key file name"},
343 {"-Q, --quote",
344 "Send command(s) to server before transfer"},
345 {" --random-file <file>",
346 "File for reading random data from"},
347 {"-r, --range <range>",
348 "Retrieve only the bytes within RANGE"},
349 {" --raw",
350 "Do HTTP \"raw\"; no transfer decoding"},
351 {"-e, --referer <URL>",
352 "Referrer URL"},
353 {"-J, --remote-header-name",
354 "Use the header-provided filename"},
355 {"-O, --remote-name",
356 "Write output to a file named as the remote file"},
357 {" --remote-name-all",
358 "Use the remote file name for all URLs"},
359 {"-R, --remote-time",
360 "Set the remote file's time on the local output"},
361 {"-X, --request <command>",
362 "Specify request command to use"},
363 {" --request-target",
364 "Specify the target for this request"},
365 {" --resolve <host:port:address>",
366 "Resolve the host+port to this address"},
367 {" --retry <num>",
368 "Retry request if transient problems occur"},
369 {" --retry-connrefused",
370 "Retry on connection refused (use with --retry)"},
371 {" --retry-delay <seconds>",
372 "Wait time between retries"},
373 {" --retry-max-time <seconds>",
374 "Retry only within this period"},
375 {" --sasl-ir",
376 "Enable initial response in SASL authentication"},
377 {" --service-name <name>",
378 "SPNEGO service name"},
379 {"-S, --show-error",
380 "Show error even when -s is used"},
381 {"-s, --silent",
382 "Silent mode"},
383 {" --socks4 <host[:port]>",
384 "SOCKS4 proxy on given host + port"},
385 {" --socks4a <host[:port]>",
386 "SOCKS4a proxy on given host + port"},
387 {" --socks5 <host[:port]>",
388 "SOCKS5 proxy on given host + port"},
389 {" --socks5-basic",
390 "Enable username/password auth for SOCKS5 proxies"},
391 {" --socks5-gssapi",
392 "Enable GSS-API auth for SOCKS5 proxies"},
393 {" --socks5-gssapi-nec",
394 "Compatibility with NEC SOCKS5 server"},
395 {" --socks5-gssapi-service <name>",
396 "SOCKS5 proxy service name for GSS-API"},
397 {" --socks5-hostname <host[:port]>",
398 "SOCKS5 proxy, pass host name to proxy"},
399 {"-Y, --speed-limit <speed>",
400 "Stop transfers slower than this"},
401 {"-y, --speed-time <seconds>",
402 "Trigger 'speed-limit' abort after this time"},
403 {" --ssl",
404 "Try SSL/TLS"},
405 {" --ssl-allow-beast",
406 "Allow security flaw to improve interop"},
407 {" --ssl-no-revoke",
408 "Disable cert revocation checks (WinSSL)"},
409 {" --ssl-reqd",
410 "Require SSL/TLS"},
411 {"-2, --sslv2",
412 "Use SSLv2"},
413 {"-3, --sslv3",
414 "Use SSLv3"},
415 {" --stderr",
416 "Where to redirect stderr"},
417 {" --suppress-connect-headers",
418 "Suppress proxy CONNECT response headers"},
419 {" --tcp-fastopen",
420 "Use TCP Fast Open"},
421 {" --tcp-nodelay",
422 "Use the TCP_NODELAY option"},
423 {"-t, --telnet-option <opt=val>",
424 "Set telnet option"},
425 {" --tftp-blksize <value>",
426 "Set TFTP BLKSIZE option"},
427 {" --tftp-no-options",
428 "Do not send any TFTP options"},
429 {"-z, --time-cond <time>",
430 "Transfer based on a time condition"},
431 {" --tls-max <VERSION>",
432 "Use TLSv1.0 or greater"},
433 {" --tlsauthtype <type>",
434 "TLS authentication type"},
435 {" --tlspassword",
436 "TLS password"},
437 {" --tlsuser <name>",
438 "TLS user name"},
439 {"-1, --tlsv1",
440 "Use TLSv1.0 or greater"},
441 {" --tlsv1.0",
442 "Use TLSv1.0"},
443 {" --tlsv1.1",
444 "Use TLSv1.1"},
445 {" --tlsv1.2",
446 "Use TLSv1.2"},
447 {" --tlsv1.3",
448 "Use TLSv1.3"},
449 {" --tr-encoding",
450 "Request compressed transfer encoding"},
451 {" --trace <file>",
452 "Write a debug trace to FILE"},
453 {" --trace-ascii <file>",
454 "Like --trace, but without hex output"},
455 {" --trace-time",
456 "Add time stamps to trace/verbose output"},
457 {" --unix-socket <path>",
458 "Connect through this Unix domain socket"},
459 {"-T, --upload-file <file>",
460 "Transfer local FILE to destination"},
461 {" --url <url>",
462 "URL to work with"},
463 {"-B, --use-ascii",
464 "Use ASCII/text transfer"},
465 {"-u, --user <user:password>",
466 "Server user and password"},
467 {"-A, --user-agent <name>",
468 "Send User-Agent <name> to server"},
469 {"-v, --verbose",
470 "Make the operation more talkative"},
471 {"-V, --version",
472 "Show version number and quit"},
473 {"-w, --write-out <format>",
474 "Use output FORMAT after completion"},
475 {" --xattr",
476 "Store metadata in extended file attributes"},
477 { NULL, NULL }
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700478};
479
480#ifdef NETWARE
481# define PRINT_LINES_PAUSE 23
482#endif
483
484#ifdef __SYMBIAN32__
485# define PRINT_LINES_PAUSE 16
486#endif
487
488struct feat {
489 const char *name;
490 int bitmask;
491};
492
493static const struct feat feats[] = {
494 {"AsynchDNS", CURL_VERSION_ASYNCHDNS},
495 {"Debug", CURL_VERSION_DEBUG},
496 {"TrackMemory", CURL_VERSION_CURLDEBUG},
497 {"IDN", CURL_VERSION_IDN},
498 {"IPv6", CURL_VERSION_IPV6},
499 {"Largefile", CURL_VERSION_LARGEFILE},
500 {"SSPI", CURL_VERSION_SSPI},
501 {"GSS-API", CURL_VERSION_GSSAPI},
502 {"Kerberos", CURL_VERSION_KERBEROS5},
503 {"SPNEGO", CURL_VERSION_SPNEGO},
504 {"NTLM", CURL_VERSION_NTLM},
505 {"NTLM_WB", CURL_VERSION_NTLM_WB},
506 {"SSL", CURL_VERSION_SSL},
507 {"libz", CURL_VERSION_LIBZ},
Alex Deymo486467e2017-12-19 19:04:07 +0100508 {"brotli", CURL_VERSION_BROTLI},
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700509 {"CharConv", CURL_VERSION_CONV},
510 {"TLS-SRP", CURL_VERSION_TLSAUTH_SRP},
511 {"HTTP2", CURL_VERSION_HTTP2},
512 {"UnixSockets", CURL_VERSION_UNIX_SOCKETS},
Alex Deymo486467e2017-12-19 19:04:07 +0100513 {"HTTPS-proxy", CURL_VERSION_HTTPS_PROXY},
Elliott Hughescac39802018-04-27 16:19:43 -0700514 {"MultiSSL", CURL_VERSION_MULTI_SSL},
515 {"PSL", CURL_VERSION_PSL},
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700516};
517
518void tool_help(void)
519{
520 int i;
Elliott Hughes82be86d2017-09-20 17:00:17 -0700521 puts("Usage: curl [options...] <url>");
522 for(i = 0; helptext[i].opt; i++) {
523 printf(" %-19s %s\n", helptext[i].opt, helptext[i].desc);
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700524#ifdef PRINT_LINES_PAUSE
525 if(i && ((i % PRINT_LINES_PAUSE) == 0))
526 tool_pressanykey();
527#endif
528 }
529}
530
531void tool_version_info(void)
532{
533 const char *const *proto;
534
535 printf(CURL_ID "%s\n", curl_version());
Elliott Hughes82be86d2017-09-20 17:00:17 -0700536#ifdef CURL_PATCHSTAMP
537 printf("Release-Date: %s, security patched: %s\n",
538 LIBCURL_TIMESTAMP, CURL_PATCHSTAMP);
539#else
540 printf("Release-Date: %s\n", LIBCURL_TIMESTAMP);
541#endif
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700542 if(curlinfo->protocols) {
543 printf("Protocols: ");
544 for(proto = curlinfo->protocols; *proto; ++proto) {
545 printf("%s ", *proto);
546 }
547 puts(""); /* newline */
548 }
549 if(curlinfo->features) {
550 unsigned int i;
551 printf("Features: ");
552 for(i = 0; i < sizeof(feats)/sizeof(feats[0]); i++) {
553 if(curlinfo->features & feats[i].bitmask)
554 printf("%s ", feats[i].name);
555 }
556#ifdef USE_METALINK
557 printf("Metalink ");
558#endif
Bertrand SIMONNETe6cd7382015-07-01 15:39:44 -0700559 puts(""); /* newline */
560 }
561}
562
563void tool_list_engines(CURL *curl)
564{
565 struct curl_slist *engines = NULL;
566
567 /* Get the list of engines */
568 curl_easy_getinfo(curl, CURLINFO_SSL_ENGINES, &engines);
569
570 puts("Build-time engines:");
571 if(engines) {
572 for(; engines; engines = engines->next)
573 printf(" %s\n", engines->data);
574 }
575 else {
576 puts(" <none>");
577 }
578
579 /* Cleanup the list of engines */
580 curl_slist_free_all(engines);
581}