mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
added persistant connection details
This commit is contained in:
parent
75a9a87ec2
commit
a4af638867
@ -21,6 +21,7 @@ Misc
|
|||||||
- redirectable stderr
|
- redirectable stderr
|
||||||
- use selected network interface for outgoing traffic
|
- use selected network interface for outgoing traffic
|
||||||
- IPv6 support
|
- IPv6 support
|
||||||
|
- persistant connections
|
||||||
|
|
||||||
HTTP
|
HTTP
|
||||||
- GET
|
- GET
|
||||||
@ -72,6 +73,7 @@ FTP
|
|||||||
|
|
||||||
TELNET
|
TELNET
|
||||||
- connection negotiation
|
- connection negotiation
|
||||||
|
- custom telnet options
|
||||||
- stdin/stdout I/O
|
- stdin/stdout I/O
|
||||||
|
|
||||||
LDAP (*2)
|
LDAP (*2)
|
||||||
|
44
docs/MANUAL
44
docs/MANUAL
@ -25,12 +25,16 @@ SIMPLE USAGE
|
|||||||
|
|
||||||
Get a list of the root directory of an FTP site:
|
Get a list of the root directory of an FTP site:
|
||||||
|
|
||||||
curl ftp://ftp.fts.frontec.se/
|
curl ftp://cool.haxx.se/
|
||||||
|
|
||||||
Get the definition of curl from a dictionary:
|
Get the definition of curl from a dictionary:
|
||||||
|
|
||||||
curl dict://dict.org/m:curl
|
curl dict://dict.org/m:curl
|
||||||
|
|
||||||
|
Fetch two documents at once:
|
||||||
|
|
||||||
|
curl ftp://cool.haxx.se/ http://www.weirdserver.com:8000/
|
||||||
|
|
||||||
DOWNLOAD TO A FILE
|
DOWNLOAD TO A FILE
|
||||||
|
|
||||||
Get a web page and store in a local file:
|
Get a web page and store in a local file:
|
||||||
@ -43,6 +47,10 @@ DOWNLOAD TO A FILE
|
|||||||
|
|
||||||
curl -O http://www.netscape.com/index.html
|
curl -O http://www.netscape.com/index.html
|
||||||
|
|
||||||
|
Fetch two files and store them with their remote names:
|
||||||
|
|
||||||
|
curl -O www.haxx.se/index.html -O curl.haxx.se/download.html
|
||||||
|
|
||||||
USING PASSWORDS
|
USING PASSWORDS
|
||||||
|
|
||||||
FTP
|
FTP
|
||||||
@ -455,9 +463,13 @@ EXTRA HEADERS
|
|||||||
|
|
||||||
curl -H "X-you-and-me: yes" www.love.com
|
curl -H "X-you-and-me: yes" www.love.com
|
||||||
|
|
||||||
This can also be useful in case you want curl to send a different text in
|
This can also be useful in case you want curl to send a different text in a
|
||||||
a header than it normally does. The -H header you specify then replaces the
|
header than it normally does. The -H header you specify then replaces the
|
||||||
header curl would normally send.
|
header curl would normally send. If you replace an internal header with an
|
||||||
|
empty one, you prevent that header from being sent. To prevent the Host:
|
||||||
|
header from being used:
|
||||||
|
|
||||||
|
curl -H "Host:" www.server.com
|
||||||
|
|
||||||
FTP and PATH NAMES
|
FTP and PATH NAMES
|
||||||
|
|
||||||
@ -745,6 +757,24 @@ TELNET
|
|||||||
to track when the login prompt is received and send the username and
|
to track when the login prompt is received and send the username and
|
||||||
password accordingly.
|
password accordingly.
|
||||||
|
|
||||||
|
PERSISTANT CONNECTIONS
|
||||||
|
|
||||||
|
Specifying multiple files on a single command line will make curl transfer
|
||||||
|
all of them, one after the other in the specified order.
|
||||||
|
|
||||||
|
libcurl will attempt to use persistant connections for the transfers so that
|
||||||
|
the second transfer to the same host can use the same connection that was
|
||||||
|
already initiated and was left open in the previous transfer. This greatly
|
||||||
|
decreases connection time for all but the first transfer and it makes a far
|
||||||
|
better use of the network.
|
||||||
|
|
||||||
|
Note that curl cannot use persistant connections for transfers that are used
|
||||||
|
in subsequence curl invokes. Try to stuff as many URLs as possible on the
|
||||||
|
same command line if they are using the same host, as that'll make the
|
||||||
|
transfers faster.
|
||||||
|
|
||||||
|
Persistant connections were introduced in curl 7.7.
|
||||||
|
|
||||||
MAILING LISTS
|
MAILING LISTS
|
||||||
|
|
||||||
For your convenience, we have several open mailing lists to discuss curl,
|
For your convenience, we have several open mailing lists to discuss curl,
|
||||||
@ -753,10 +783,10 @@ MAILING LISTS
|
|||||||
To subscribe to the main curl list, mail curl-request@contactor.se with
|
To subscribe to the main curl list, mail curl-request@contactor.se with
|
||||||
"subscribe <fill in your email address>" in the body.
|
"subscribe <fill in your email address>" in the body.
|
||||||
|
|
||||||
To subscribe to the libcurl users list, follow the instructions at
|
To subscribe to the curl-library users/deverlopers list, follow the
|
||||||
http://curl.haxx.se/mail/
|
instructions at http://curl.haxx.se/mail/
|
||||||
|
|
||||||
To subscribe to the curl announce list, to only get information about new
|
To subscribe to the curl-announce list, to only get information about new
|
||||||
releases, follow the instructions at http://curl.haxx.se/mail/
|
releases, follow the instructions at http://curl.haxx.se/mail/
|
||||||
|
|
||||||
To subscribe to the curl-and-PHP list in which curl using with PHP is
|
To subscribe to the curl-and-PHP list in which curl using with PHP is
|
||||||
|
Loading…
x
Reference in New Issue
Block a user