📄 hugehelp.c
字号:
" attempted to be made secure by using the CA cer-\n"" tificate bundle installed by default. This makes\n", stdout); fputs(" all connections considered \"insecure\" to fail\n"" unless -k/--insecure is used.\n""\n"" This option is ignored if --cacert or --capath is\n"" used!\n""\n"" If this option is used twice, the second time will\n"" again disable it.\n""\n"" --krb4 <level>\n"" (FTP) Enable kerberos4 authentication and use. The\n"" level must be entered and should be one of 'clear',\n", stdout); fputs(" 'safe', 'confidential' or 'private'. Should you use\n"" a level that is not one of these, 'private' will\n""\n"" instead be used.\n""\n"" If this option is used several times, the last one\n"" will be used.\n""\n"" -K/--config <config file>\n"" Specify which config file to read curl arguments\n"" from. The config file is a text file in which com-\n"" mand line arguments can be written which then will\n", stdout); fputs(" be used as if they were written on the actual com-\n"" mand line. Options and their parameters must be\n"" specified on the same config file line. If the\n"" parameter is to contain white spaces, the parameter\n"" must be inclosed within quotes. If the first col-\n"" umn of a config line is a '#' character, the rest\n"" of the line will be treated as a comment.\n""\n", stdout); fputs(" Specify the filename as '-' to make curl read the\n"" file from stdin.\n""\n"" Note that to be able to specify a URL in the config\n"" file, you need to specify it using the --url\n"" option, and not by simply writing the URL on its\n"" own line. So, it could look similar to this:\n""\n"" url = \"http://curl.haxx.se/docs/\"\n""\n"" This option can be used multiple times.\n""\n"" --limit-rate <speed>\n", stdout); fputs(" Specify the maximum transfer rate you want curl to\n"" use. This feature is useful if you have a limited\n"" pipe and you'd like your transfer not use your\n"" entire bandwidth.\n""\n"" The given speed is measured in bytes/second, unless\n"" a suffix is appended. Appending 'k' or 'K' will\n"" count the number as kilobytes, 'm' or M' makes it\n"" megabytes while 'g' or 'G' makes it gigabytes.\n", stdout); fputs(" Examples: 200K, 3m and 1G.\n""\n"" This option was introduced in curl 7.10.\n""\n"" If this option is used several times, the last one\n"" will be used.\n""\n"" -l/--list-only\n"" (FTP) When listing an FTP directory, this switch\n"" forces a name-only view. Especially useful if you\n"" want to machine-parse the contents of an FTP direc-\n"" tory since the normal directory view doesn't use a\n", stdout); fputs(" standard look or format.\n""\n"" This option causes an FTP NLST command to be sent.\n"" Some FTP servers list only files in their response\n"" to NLST; they do not include subdirectories and\n"" symbolic links.\n""\n"" If this option is used twice, the second will again\n"" disable list only.\n""\n"" -L/--location\n"" (HTTP/HTTPS) If the server reports that the\n", stdout); fputs(" requested page has a different location (indicated\n"" with the header line Location:) this flag will let\n"" curl attempt to reattempt the get on the new place.\n"" If used together with -i or -I, headers from all\n"" requested pages will be shown. If authentication is\n"" used, curl will only send its credentials to the\n"" initial host, so if a redirect takes curl to a dif-\n", stdout); fputs(" ferent host, it won't intercept the user+password.\n"" See also --location-trusted on how to change this.\n"" If this option is used twice, the second will again\n"" disable location following.\n""\n"" --location-trusted\n"" (HTTP/HTTPS) Like --location, but will allow send-\n"" ing the name + password to all hosts that the site\n"" may redirect to. This may or may not introduce a\n", stdout); fputs(" security breach if the site redirects you do a site\n"" to which you'll send your authentication info\n"" (which is plaintext in the case of HTTP Basic\n"" authentication).\n""\n"" If this option is used twice, the second will again\n"" disable location following.\n""\n"" --max-filesize <bytes>\n"" Specify the maximum size (in bytes) of a file to\n", stdout); fputs(" download. If the file requested is larger than this\n"" value, the transfer will not start and curl will\n"" return with exit code 63.\n""\n"" NOTE: The file size is not always known prior to\n"" download, and for such files this option has no\n"" effect even if the file transfer ends up being\n"" larger than this given limit. This concerns both\n"" FTP and HTTP transfers.\n", stdout); fputs(" -m/--max-time <seconds>\n"" Maximum time in seconds that you allow the whole\n"" operation to take. This is useful for preventing\n"" your batch jobs from hanging for hours due to slow\n"" networks or links going down. This doesn't work\n"" fully in win32 systems. See also the --connect-\n"" timeout option.\n""\n"" If this option is used several times, the last one\n"" will be used.\n""\n", stdout); fputs(" -M/--manual\n"" Manual. Display the huge help text.\n""\n"" -n/--netrc\n"" Makes curl scan the .netrc file in the user's home\n"" directory for login name and password. This is typ-\n"" ically used for ftp on unix. If used with http,\n"" curl will enable user authentication. See netrc(4)\n"" or ftp(1) for details on the file format. Curl will\n"" not complain if that file hasn't the right permis-\n", stdout); fputs(" sions (it should not be world nor group readable).\n"" The environment variable \"HOME\" is used to find the\n"" home directory.\n""\n"" A quick and very simple example of how to setup a\n"" .netrc to allow curl to ftp to the machine\n"" host.domain.com with user name 'myself' and pass-\n"" word 'secret' should look similar to:\n""\n"" machine host.domain.com login myself password\n", stdout); fputs(" secret\n""\n"" If this option is used twice, the second will again\n"" disable netrc usage.\n""\n"" --negotiate\n"" (HTTP) Enables GSS-Negotiate authentication. The\n"" GSS-Negotiate method was designed by Microsoft and\n"" is used in their web aplications. It is primarily\n"" meant as a support for Kerberos5 authentication but\n"" may be also used along with another authentication\n", stdout); fputs(" methods. For more information see IETF draft draft-\n"" brezak-spnego-http-04.txt. (Added in 7.10.6)\n""\n"" NOTE that this option requiures that the library\n"" was built with GSSAPI support. This is not very\n"" common. Use curl --version to see if your version\n"" supports GSS-Negotiate.\n""\n"" If this option is used several times, the following\n"" occurrences make no difference.\n""\n"" -N/--no-buffer\n", stdout); fputs(" Disables the buffering of the output stream. In\n"" normal work situations, curl will use a standard\n"" buffered output stream that will have the effect\n"" that it will output the data in chunks, not neces-\n"" sarily exactly when the data arrives. Using this\n"" option will disable that buffering.\n""\n"" If this option is used twice, the second will again\n""\n"" switch on buffering.\n""\n", stdout); fputs(" --ntlm (HTTP) Enables NTLM authentication. The NTLM\n"" authentication method was designed by Microsoft and\n"" is used by IIS web servers. It is a proprietary\n"" protocol, reversed engineered by clever people and\n"" implemented in curl based on their efforts. This\n"" kind of behavior should not be endorsed, you should\n"" encourage everyone who uses NTLM to switch to a\n", stdout); fputs(" public and documented authentication method\n"" instead. Such as Digest. (Added in 7.10.6)\n""\n"" NOTE that this option requiures that the library\n"" was built with SSL support. Use curl --version to\n"" see if your version supports NTLM.\n""\n"" If this option is used several times, the following\n"" occurrences make no difference.\n""\n"" -o/--output <file>\n", stdout); fputs(" Write output to <file> instead of stdout. If you\n"" are using {} or [] to fetch multiple documents, you\n"" can use '#' followed by a number in the <file>\n"" specifier. That variable will be replaced with the\n"" current string for the URL being fetched. Like in:\n""\n"" curl http://{one,two}.site.com -o \"file_#1.txt\"\n""\n"" or use several variables like:\n""\n", stdout); fputs(" curl http://{site,host}.host[1-5].com -o \"#1_#2\"\n""\n"" You may use this option as many times as you have\n"" number of URLs.\n""\n"" See also the --create-dirs option to create the\n"" local directories dynamically.\n""\n"" -O/--remote-name\n"" Write output to a local file named like the remote\n"" file we get. (Only the file part of the remote file\n"" is used, the path is cut off.)\n""\n", stdout); fputs(" You may use this option as many times as you have\n"" number of URLs.\n""\n"" -p/--proxytunnel\n"" When an HTTP proxy is used, this option will cause\n"" non-HTTP protocols to attempt to tunnel through the\n"" proxy instead of merely using it to do HTTP-like\n"" operations. The tunnel approach is made with the\n"" HTTP proxy CONNECT request and requires that the\n", stdout); fputs(" proxy allows direct connect to the remote port num-\n"" ber curl wants to tunnel through to.\n""\n"" If this option is used twice, the second will again\n"" disable proxy tunnel.\n""\n"" -P/--ftpport <address>\n"" (FTP) Reverses the initiator/listener roles when\n"" connecting with ftp. This switch makes Curl use the\n"" PORT command instead of PASV. In practice, PORT\n", stdout); fputs(" tells the server to connect to the client's speci-\n"" fied address and port, while PASV asks the server\n"" for an ip address and port to connect to. <address>\n"" should be one of:\n""\n"" interface i.e \"eth0\" to specify which interface's\n"" IP address you want to use (Unix only)\n""\n"" IP address i.e \"192.168.10.1\" to specify exact IP\n"" number\n""\n", stdout); fputs(" host name i.e \"my.host.domain\" to specify machine\n"" - (any single-letter string) to make it\n"" pick the machine's default\n""\n"" If this option is used several times, the last one will be\n"" used.\n""\n"" -q If used as the first parameter on the command line,\n"" the $HOME/.curlrc file will not be read and used as\n"" a config file.\n""\n"" -Q/--quote <comand>\n", stdout); fputs(" (FTP) Send an arbitrary command to the remote FTP\n"" server, by using the QUOTE command of the server.\n"" Not all servers support this command, and the set\n"" of QUOTE commands are server specific! Quote com-\n"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -