![]() Your particular build may not support them all. ![]() ProtocolsĬurl supports numerous protocols, or put in URL terms: schemes. It does no encoding or decoding, unless explicitly asked to with dedicated command line options. If curl is given multiple URLs to transfer on the command line, it similarly needs multiple options for where to save them.Ĭurl does not parse or otherwise "understand" the content it gets or writes as output. It can be instructed to instead save that data into a local file, using the -o, -output or -O, -remote-name options. If not told otherwise, curl writes the received data to stdout. Connection re-use can only be done for URLs specified for a single command line invocation and cannot be performed between separate curl runs. For example, for host names starting with "ftp." curl assumes you want FTP.Ĭurl attempts to re-use connections when doing multiple file transfers, so that getting many files from the same server do not use multiple connects / handshakes. It then defaults to HTTP but assumes others based on often-used host name prefixes. " If you specify a URL without a protocol:// scheme, curl guesses what protocol you want. Provide the IPv6 zone index in the URL with an escaped percentage sign and the interface name. ![]() This also goes for other characters treated special, like for example '&', '?' and '*'. When using or sequences when invoked from a command line prompt, you probably have to put the full URL within double quotes to avoid the shell from interfering with it. You can specify a step counter for the ranges to get every Nth number or letter: You can specify command line options and URLs mixed and in any order on the command line. They will be fetched in a sequential manner in the specified order unless you use -Z, -parallel. You can specify any amount of URLs on the command line. Nested sequences are not supported, but you can use several ones next to each other: " or you can get sequences of alphanumeric series by using as in: You can specify multiple URLs or parts of URLs by writing part sets within braces and quoting the URL as in: You find a detailed description in RFC 3986. As you will see below, the number of features will make your head spin.Ĭurl is powered by libcurl for all transfer-related features. The command is designed to work without user interaction.Ĭurl offers a busload of useful tricks like proxy support, user authentication, FTP upload, HTTP post, SSL connections, cookies, file transfer resume and more. It supports these protocols: DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET, TFTP, WS and WSS. Curl is a tool for transferring data from or to a server.
0 Comments
Leave a Reply. |