• Home
  • Raw
  • Download

Lines Matching full:curl

4   from the curl web pages, located at:
6 https://curl.haxx.se
12 curl http://www.netscape.com/
16 curl ftp://ftp.funet.fi/README
20 curl http://www.weirdserver.com:8000/
24 curl ftp://cool.haxx.se/
26 Get the definition of curl from a dictionary:
28 curl dict://dict.org/m:curl
32 curl ftp://cool.haxx.se/ http://www.weirdserver.com:8000/
36 curl ftps://files.are.secure.com/secrets.txt
40 curl --ftp-ssl ftp://files.are.secure.com/secrets.txt
44 curl -u username sftp://example.com/etc/issue
49 curl -u username: --key ~/.ssh/id_rsa \
55 curl -u username: --key ~/.ssh/id_rsa --pass private_key_password \
60 curl "http://[2001:1890:1112:1::20]/"
64 curl -u "domain\username:passwd" smb://server.example.com/share/file.txt
70 curl -o thatpage.html http://www.netscape.com/
76 curl -O http://www.netscape.com/index.html
80 curl -O www.haxx.se/index.html -O curl.haxx.se/download.html
88 curl ftp://name:passwd@machine.domain:port/full/path/to/file
92 curl -u name:passwd ftp://machine.domain:port/full/path/to/file
109 Typically, curl will automatically extract the public key from the private
110 key file, but in cases where curl does not have the proper library support,
115 Curl also supports user and password in HTTP URLs, thus you can pick a file
118 curl http://name:passwd@machine.domain/full/path/to/file
122 curl -u name:passwd http://machine.domain/full/path/to/file
124 HTTP offers many different methods of authentication and curl supports
126 method to use, curl defaults to Basic. You can also ask curl to pick the
131 and password, so that style will not work when using curl via a proxy, even
132 though curl allows it at other times. When using a proxy, you _must_ use
141 curl supports both HTTP and SOCKS proxy servers, with optional authentication.
149 curl -x my-proxy:888 ftp://ftp.leachsite.com/README
154 curl -u user:passwd -x my-proxy:888 http://www.get.this/
158 curl -U user:passwd -x my-proxy:888 http://www.get.this/
163 curl --noproxy localhost,get.this -x my-proxy:888 http://www.get.this/
166 curl will use HTTP/1.0 instead of HTTP/1.1 for any CONNECT attempts.
168 curl also supports SOCKS4 and SOCKS5 proxies with --socks4 and --socks5.
170 See also the environment variables Curl supports that offer further proxy
175 curl supports the -u, -Q and --ftp-account options that can be used to
180 curl -u "Remote-FTP-Username@remote.ftp.server Proxy-Username:Remote-Pass" \
185 transfers, and curl's -v option to see exactly what curl is sending.
190 to get only one or more subparts of a specified document. Curl supports
195 curl -r 0-99 http://www.get.this/
199 curl -r -500 http://www.get.this/
201 Curl also supports simple ranges for FTP files as well. Then you can only
206 curl -r 0-99 ftp://www.get.this/README
214 curl -T - ftp://ftp.upload.com/myfile
218 curl -T uploadfile -u user:passwd ftp://ftp.upload.com/myfile
223 curl -T uploadfile -u user:passwd ftp://ftp.upload.com/
227 curl -T localfile -a ftp://ftp.upload.com/remotefile
229 Curl also supports ftp upload through a proxy, but only if the proxy is
230 configured to allow that kind of tunneling. If it does, you can run curl in
233 curl --proxytunnel -x proxy:port -T localfile ftp.upload.com
237 curl -T file.txt -u "domain\username:passwd"
244 curl -T - http://www.upload.com/myfile
253 If curl fails where it isn't supposed to, if the servers don't let you in,
255 fetching. Curl will output lots of info and what it sends and receives in
259 curl -v ftp://ftp.upload.com/
261 To get even more details and information on what curl does, try using the
265 curl --trace trace.txt www.haxx.se
271 about specific files/documents. To get curl to show detailed information
277 shown before the data by using -i/--include. Curl understands the
283 curl --dump-header headers.txt curl.haxx.se
286 time if you want curl to use cookies sent by the server. More about that in
291 It's easy to post data using curl. This is done using the -d <data>
296 curl -d "name=Rafael%20Sagula&phone=3320780" \
299 How to post a form with curl, lesson #1:
302 a perl program called formfind.pl on the curl site that helps with this).
328 To post to this, you enter a curl command line like:
330 curl -d "user=foobar&pass=12345&id=blablabla&ding=submit" (continues)
335 understood by CGI's and similar, curl also supports the more capable
345 curl -F "coolfiles=@fil1.gif;type=image/gif,fil2.txt,fil3.html" \
348 If the content-type is not specified, curl will try to guess from the file
356 "cooltext.txt". To let curl do the posting of this data instead of your
361 curl -F "file=@cooltext.txt" -F "yourname=Daniel" \
369 curl -F "pictures=@dog.gif,cat.gif"
373 curl -F "docpicture=@dog.gif" -F "catpicture=@cat.gif"
379 -F instead of --form-string would allow a user to trick curl into
385 referred it to the actual page. Curl allows you to specify the
390 curl -e www.coolsite.com http://www.showme.com/
397 that generated the request. Curl allows it to be specified on the command
403 curl -A 'Mozilla/3.0 (Win95; I)' http://www.nationsbank.com/
439 curl -b "name=Daniel" www.sillypage.com
441 Curl also has the ability to use previously received cookies in following
445 curl --dump-header headers www.example.com
450 curl -b headers www.example.com
453 however error-prone and not the preferred way to do this. Instead, make curl
457 curl -c cookies.txt www.example.com
460 you can make curl follow a location: (which often is used in combination
464 curl -L -b empty.txt www.example.com
467 as netscape's cookie file. Curl will determine what kind it is based on the
468 file contents. In the above command, curl will parse the header and store
469 the cookies received from www.example.com. curl will send to the server the
476 curl -b cookies.txt -c cookies.txt www.example.com
509 Curl allows the user to set the transfer speed conditions that must be met
511 can make curl abort transfers if the transfer speed is below the specified
514 To have curl abort the download if the speed is slower than 3000 bytes per
517 curl -Y 3000 -y 60 www.far-away-site.com
522 curl -m 1800 -Y 3000 -y 60 www.far-away-site.com
524 Forcing curl not to transfer data faster than a given rate is also possible,
529 Make curl transfer data no faster than 10 kilobytes per second:
531 curl --limit-rate 10K www.far-away-site.com
535 curl --limit-rate 10240 www.far-away-site.com
537 Or prevent curl from uploading data faster than 1 megabyte per second:
539 curl -T upload --limit-rate 1M ftp://uploadshereplease.com
548 Curl automatically tries to read the .curlrc file (or _curlrc file on win32
573 Prevent curl from reading the default file by using -q as the first command
576 curl -q www.thatsite.com
578 Force curl to get and display a local help page in case it is invoked
582 url = "http://help.with.curl.com/curlhelp.html"
589 echo "user = user:passwd" | curl -K - http://that.secret.site.com
593 When using curl in your own very special programs, you may end up needing
600 curl -H "X-you-and-me: yes" www.love.com
602 This can also be useful in case you want curl to send a different text in a
604 header curl would normally send. If you replace an internal header with an
608 curl -H "Host:" www.server.com
616 curl ftp://user:passwd@my.site.com/README
621 curl ftp://user:passwd@my.site.com//README
631 curl -u $USER sftp://home.example.com/~/.bashrc
639 The default way for curl is to issue the PASV command which causes the
644 curl ftp.download.com
652 The -P flag to curl supports a few different options. Your machine may have
653 several IP-addresses and/or network interfaces and curl allows you to select
656 curl -P - ftp.download.com
661 curl -P le0 ftp.download.com
665 curl -P 192.168.0.10 ftp.download.com
671 curl --interface eth0:1 http://www.netscape.com/
675 curl --interface 192.168.1.10 http://www.netscape.com/
679 Secure HTTP requires SSL libraries to be installed and used when curl is
680 built. If that is done, curl is capable of retrieving and posting documents
685 curl https://www.secure-site.com
687 Curl is also capable of using your personal certificates to get/post files
692 want curl to use the certificates you use with your (favourite) browser, you
703 curl -E /path/to/cert.pem:password https://secure.site.com/
710 SSL-version curl should use. Use -3, -2 or -1 to specify that exact SSL
713 curl -2 https://secure.site.com/
715 Otherwise, curl will first attempt to use v3 and then v2.
718 formatted one that curl can use, do something like this:
748 To continue a file transfer where it was previously aborted, curl supports
753 curl -C - -o file ftp://ftp.server.com/path/file
757 curl -C - -T file ftp://ftp.server.com/path/file
761 curl -C - -o file http://www.server.com/
764 SIZE. If it doesn't, curl will say so.
767 doesn't, curl will say so.
772 requests. It is If-Modified-Since or If-Unmodified-Since. Curl allows you to
778 curl -z local.html http://remote.server.com/remote.html
783 curl -z -local.html http://remote.server.com/remote.html
785 You can specify a "free text" date as condition. Tell curl to only download
788 curl -z "Jan 12 2012" http://remote.server.com/remote.html
790 Curl will then accept a wide range of date formats. You always make the date
797 curl dict://dict.org/m:curl
798 curl dict://dict.org/d:heisenbug:jargon
799 curl dict://dict.org/d:daniel:web1913
804 curl dict://dict.org/find:curl
809 curl dict://dict.org/show:db
810 curl dict://dict.org/show:strat
816 If you have installed the OpenLDAP library, curl can take advantage of it
823 RFC 2255, "The LDAP URL Format" https://curl.haxx.se/rfc/rfc2255.txt
828 curl -B "ldap://ldap.frontec.se/o=frontec??sub?mail=*sth.frontec.se"
835 Curl reads and understands the following environment variables:
863 only readable by yourself (curl doesn't care though).
865 Curl supports .netrc files if told to (using the -n/--netrc and
867 so curl can use it for all protocols where authentication is used.
871 machine curl.haxx.se login iamdaniel password mysecret
876 curl, the -w/--write-out option was introduced. Using this, you can specify
882 curl -w 'We downloaded %{size_download} bytes\n' www.download.com
886 Curl supports kerberos4 and kerberos5/GSSAPI for FTP transfers. You need
887 the kerberos package installed and used at curl build time for it to be
891 Then use curl in way similar to:
893 curl --krb private ftp://krb4site.com -u username:fakepwd
896 curl ask for one and you already entered the real password to kinit/kauth.
900 The curl telnet support is basic and very easy to use. Curl passes all data
904 curl telnet://remote.server.com
915 curl -tTTYPE=vt100 telnet://remote.server.com
924 user and password so curl can't do that automatically. To do that, you need
930 Specifying multiple files on a single command line will make curl transfer
939 Note that curl cannot use persistent connections for transfers that are used
940 in subsequence curl invokes. Try to stuff as many URLs as possible on the
956 curl -O http://url.com/file.txt ftp://ftp.com/moo.exe -o moo.jpg
960 curl -T local1 ftp://ftp.com/moo.exe -T local2 ftp://ftp.com/moo2.txt
964 curl will connect to a server with IPv6 when a host lookup returns an IPv6
971 When this style is used, the -g option must be given to stop curl from
985 Curl supports Metalink (both version 3 and 4 (RFC 5854) are supported), a way
986 to list multiple URIs and hashes for a file. Curl will make use of the mirrors
994 curl --metalink http://www.example.com/example.metalink
998 curl --metalink file://example.metalink
1008 For your convenience, we have several open mailing lists to discuss curl,
1010 https://curl.haxx.se/mail/. Some of the lists available are:
1012 curl-users
1018 curl-library
1022 curl-announce
1028 curl-and-php
1030 Using the curl functions in PHP. Everything curl with a PHP angle. Or PHP
1031 with a curl angle.
1033 curl-and-python
1035 Python hackers using curl with or without the python binding pycurl.
1037 Please direct curl questions, feature requests and trouble reports to one of