Lines Matching +full:gpg +full:- +full:agent
5 Get the main page from a web-server:
35 curl --ftp-ssl ftp://files.are.secure.com/secrets.txt
39 curl -u username sftp://example.com/etc/issue
42 password-protected) to authenticate:
44 curl -u username: --key ~/.ssh/id_rsa scp://example.com/~/file.txt
47 (password-protected) to authenticate:
49 curl -u username: --key ~/.ssh/id_rsa --pass private_key_password
58 curl -u "domain\username:passwd" smb://server.example.com/share/file.txt
64 curl -o thatpage.html http://www.example.com/
70 curl -O http://www.example.com/index.html
74 curl -O www.haxx.se/index.html -O curl.se/download.html
84 or specify them with the `-u` flag like
86 curl -u name:passwd ftp://machine.domain:port/full/path/to/file
90 It is just like for FTP, but you may also want to specify and use SSL-specific
95 the `--ssl-reqd` option.
99 This is similar to FTP, but you can use the `--key` option to specify a
102 remote system; this password is specified using the `--pass` option.
105 matching public key file must be specified using the `--pubkey` option.
116 curl -u name:passwd http://machine.domain/full/path/to/file
122 using `--anyauth`.
127 `-u` style for user and password.
141 Get an ftp file using an HTTP proxy named my-proxy that uses port 888:
143 curl -x my-proxy:888 ftp://ftp.leachsite.com/README
148 curl -u user:passwd -x my-proxy:888 http://www.get.this/
150 Some proxies require special authentication. Specify by using -U as above:
152 curl -U user:passwd -x my-proxy:888 http://www.get.this/
154 A comma-separated list of hosts and domains which do not use the proxy can be
157 curl --noproxy localhost,get.this -x my-proxy:888 http://www.get.this/
159 If the proxy is specified with `--proxy1.0` instead of `--proxy` or `-x`, then
162 curl also supports SOCKS4 and SOCKS5 proxies with `--socks4` and `--socks5`.
169 curl supports the `-u`, `-Q` and `--ftp-account` options that can be used to
173 curl -u "username@ftp.server Proxy-Username:Remote-Pass"
174 --ftp-account Proxy-Password --upload-file local-file
175 ftp://my-ftp.proxy.server:21/remote/upload/path/
178 transfers, and curl's `-v` option to see exactly what curl is sending.
182 Get a key file and add it with `apt-key` (when on a system that uses `apt` for
185 curl -L https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
187 The '|' pipes the output to STDIN. `-` tells `apt-key` that the key file
192 HTTP 1.1 introduced byte-ranges. Using this, a client can request to get only
193 one or more sub-parts of a specified document. Curl supports this with the
194 `-r` flag.
198 curl -r 0-99 http://www.get.this/
202 curl -r -500 http://www.get.this/
209 curl -r 0-99 ftp://www.get.this/README
217 curl -T - ftp://ftp.upload.com/myfile
221 curl -T uploadfile -u user:passwd ftp://ftp.upload.com/myfile
226 curl -T uploadfile -u user:passwd ftp://ftp.upload.com/
230 curl -T localfile -a ftp://ftp.upload.com/remotefile
236 curl --proxytunnel -x proxy:port -T localfile ftp.upload.com
240 curl -T file.txt -u "domain\username:passwd"
247 curl -T - http://www.upload.com/myfile
257 you cannot understand the responses: use the `-v` flag to get verbose
259 order to let the user see all client-server interaction (but it will not show you
262 curl -v ftp://ftp.upload.com/
265 `--trace` or `--trace-ascii` options with a given file name to log to, like
268 curl --trace trace.txt www.haxx.se
275 a single file, you should use `-I`/`--head` option. It displays all available
279 For HTTP, you can get the header information (the same as `-I` would show)
280 shown before the data by using `-i`/`--include`. Curl understands the
281 `-D`/`--dump-header` option when getting files from both FTP and HTTP, and it
286 curl --dump-header headers.txt curl.se
294 It is easy to post data using curl. This is done using the `-d <data>` option.
299 curl -d "name=Rafael%20Sagula&phone=3320780" http://www.where.com/guest.cgi
301 Or automatically [URL encode the data](https://everything.curl.dev/http/post/url-encode).
303 curl --data-urlencode "name=Rafael Sagula&phone=3320780" http://www.where.com/guest.cgi
309 If there is a normal post, you use `-d` to post. `-d` takes a full post
337 curl -d "user=foobar&pass=12345&id=blablabla&ding=submit"
340 While `-d` uses the application/x-www-form-urlencoded mime-type, generally
342 multipart/form-data type. This latter type supports things like file upload.
344 `-F` accepts parameters like `-F "name=contents"`. If you want the contents to
351 curl -F "coolfiles=@fil1.gif;type=image/gif,fil2.txt,fil3.html"
354 If the content-type is not specified, curl will try to guess from the file
357 default type `application/octet-stream`.
359 Emulate a fill-in form with `-F`. Let's say you fill in three fields in a
367 curl -F "file=@cooltext.txt" -F "yourname=Daniel"
368 -F "filedescription=Cool text file with cool text inside"
375 curl -F "pictures=@dog.gif,cat.gif" $URL
379 curl -F "docpicture=@dog.gif" -F "catpicture=@cat.gif" $URL
382 an embedded `;type=`, use `--form-string` instead of `-F`. This is recommended
384 source. Under these circumstances, using `-F` instead of `--form-string` could
395 curl -e www.coolsite.com http://www.showme.com/
397 ## User Agent
406 curl -A 'Mozilla/3.0 (Win95; I)' http://www.nationsbank.com/
410 - `Mozilla/3.0 (Win95; I)` - Netscape Version 3 for Windows 95
411 - `Mozilla/3.04 (Win95; U)` - Netscape Version 3 for Windows 95
412 - `Mozilla/2.02 (OS/2; U)` - Netscape Version 2 for OS/2
413 - `Mozilla/4.04 [en] (X11; U; AIX 4.2; Nav)` - Netscape for AIX
414 - `Mozilla/4.05 [en] (X11; U; Linux 2.0.32 i586)` - Netscape for Linux
418 - `Mozilla/4.0 (compatible; MSIE 4.01; Windows 95)` - MSIE for W95
420 Mozilla is not the only possible User-Agent name:
422 - `Konqueror/1.0` - KDE File Manager desktop client
423 - `Lynx/2.7.1 libwww-FM/2.14` - Lynx command line browser
429 headers that looks like `Set-Cookie: <data>` where the data part then
439 Set-Cookie: sessionid=boo123; path="/foo";
447 curl -b "name=Daniel" www.sillypage.com
453 curl --dump-header headers www.example.com
458 curl -b headers.txt www.example.com
461 however error-prone and not the preferred way to do this. Instead, make curl
462 save the incoming cookies using the well-known Netscape cookie format like
465 curl -c cookies.txt www.example.com
467 Note that by specifying `-b` you enable the cookie engine and with `-L` you
470 non-existing file to trigger the cookie awareness like:
472 curl -L -b empty.txt www.example.com
481 To read and write cookies from a Netscape cookie file, you can set both `-b`
482 and `-c` to use the same file:
484 curl -b cookies.txt -c cookies.txt www.example.com
495 From left-to-right:
497 - `%` - percentage completed of the whole transfer
498 - `Total` - total size of the whole expected transfer
499 - `%` - percentage completed of the download
500 - `Received` - currently downloaded amount of bytes
501 - `%` - percentage completed of the upload
502 - `Xferd` - currently uploaded amount of bytes
503 - `Average Speed Dload` - the average transfer speed of the download
504 - `Average Speed Upload` - the average transfer speed of the upload
505 - `Time Total` - expected time to complete the operation
506 - `Time Current` - time passed since the invoke
507 - `Time Left` - expected time left to completion
508 - `Curr.Speed` - the average transfer speed the last 5 seconds (the first
511 The `-#` option will display a totally different progress bar that does not
517 let the transfer keep going. By using the switch `-y` and `-Y` you can make
524 curl -Y 3000 -y 60 www.far-away-site.com
529 curl -m 1800 -Y 3000 -y 60 www.far-away-site.com
538 curl --limit-rate 10K www.far-away-site.com
542 curl --limit-rate 10240 www.far-away-site.com
546 curl -T upload --limit-rate 1M ftp://uploadshereplease.com
548 When using the `--limit-rate` option, the transfer rate is regulated on a
549 per-second basis, which will cause the total transfer speed to become lower
562 line is a `#`-symbol the rest of the line is treated as a comment.
573 -m 1800
580 Prevent curl from reading the default file by using -q as the first command
583 curl -q www.thatsite.com
591 You can specify another config file to be read by using the `-K`/`--config`
592 flag. If you set config file name to `-` it will read the config from stdin,
596 echo "user = user:passwd" | curl -K - http://that.secret.site.com
601 own custom headers when getting a web page. You can do this by using the `-H`
604 Example, send the header `X-you-and-me: yes` to the server when getting a
607 curl -H "X-you-and-me: yes" www.love.com
610 header than it normally does. The `-H` header you specify then replaces the
615 curl -H "Host:" www.server.com
638 curl -u $USER sftp://home.example.com/~/.bashrc
659 The `-P` flag to curl supports a few different options. Your machine may have
660 several IP-addresses and/or network interfaces and curl allows you to select
663 curl -P - ftp.download.com
668 curl -P le0 ftp.download.com
672 curl -P 192.168.0.10 ftp.download.com
678 curl --interface eth0:1 http://www.example.com/
682 curl --interface 192.168.1.10 http://www.example.com/
692 curl https://www.secure-site.com
696 needs to be in PEM-format. PEM is a standard and open format to store
705 curl -E /path/to/cert.pem:password https://secure.site.com/
714 curl --tlv1.0 https://secure.site.com/
725 curl -C - -o file ftp://ftp.server.com/path/file
729 curl -C - -T file ftp://ftp.server.com/path/file
733 curl -C - -o file http://www.server.com/
738 It is `If-Modified-Since` or `If-Unmodified-Since`. curl allows you to specify
739 them with the `-z`/`--time-cond` flag.
744 curl -z local.html http://remote.server.com/remote.html
747 one. Do this by prepending the date string with a `-`, as in:
749 curl -z -local.html http://remote.server.com/remote.html
754 curl -z "Jan 12 2012" http://remote.server.com/remote.html
757 other way around by prepending it with a dash (`-`).
794 server that has a certain sub-domain in their email address:
796 curl -B "ldap://ldap.frontec.se/o=frontec??sub?mail=*sth.frontec.se"
798 If I want the same info in HTML format, I can get it by not using the `-B`
803 curl -u user:passwd "ldap://ldap.frontec.se/o=frontec??sub?mail=*"
808 `--basic`, `--ntlm` or `--digest` option in curl command line
810 curl --ntlm "ldap://user:passwd@ldap.frontec.se/o=frontec??sub?mail=*"
812 On Windows, if no user/password specified, auto-negotiation mechanism will be
821 They should be set for protocol-specific proxies. General proxy should be set
826 A comma-separated list of host names that should not go through any proxy is
839 The usage of the `-x`/`--proxy` flag overrides the environment variables.
850 Curl supports `.netrc` files if told to (using the `-n`/`--netrc` and
851 `--netrc-optional` options). This is not restricted to just FTP, so curl can
861 the `-w`/`--write-out` option was introduced. Using this, you can specify what
867 curl -w 'We downloaded %{size_download} bytes\n' www.download.com
874 First, get the krb-ticket the normal way, like with the `kinit`/`kauth` tool.
877 curl --krb private ftp://krb4site.com -u username:fakepwd
879 There is no use for a password on the `-u` switch, but a blank one will make
891 stdout or to the file you specify with `-o`.
893 You might want the `-N`/`--no-buffer` option to switch off the buffered output
896 Pass options to the telnet protocol negotiation, by using the `-t` option. To
899 curl -tTTYPE=vt100 telnet://remote.server.com
901 Other interesting options for it `-t` include:
903 - `XDISPLOC=<X display>` Sets the X display location.
904 - `NEW_ENV=<var,val>` Sets an environment variable.
933 URL you specify. Note that this also goes for the `-O` option (but not
934 `--remote-name-all`).
936 For example: get two files and use `-O` for the first and a custom file
939 curl -O http://url.com/file.txt ftp://ftp.com/moo.exe -o moo.jpg
943 curl -T local1 ftp://ftp.com/moo.exe -T local2 ftp://ftp.com/moo2.txt
948 address and fall back to IPv4 if the connection fails. The `--ipv4` and
949 `--ipv6` options can specify which address to use when both are
955 When this style is used, the `-g` option must be given to stop curl from
964 IPv6 addresses provided other than in URLs (e.g. to the `--proxy`,
965 `--interface` or `--ftp-port` options) should not be URL encoded.
978 ### `curl-users`
984 ### `curl-library`
988 ### `curl-announce`
990 Low-traffic. Only receives announcements of new public versions. At worst,
994 ### `curl-and-php`
999 ### `curl-and-python`