mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
opts: more man pages
This commit is contained in:
parent
38bf85fd61
commit
c3954ffb25
54
docs/libcurl/opts/CURLOPT_CAINFO.3
Normal file
54
docs/libcurl/opts/CURLOPT_CAINFO.3
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
|
.\" * you should have received as part of this distribution. The terms
|
||||||
|
.\" * are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
.\" *
|
||||||
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
.\" * copies of the Software, and permit persons to whom the Software is
|
||||||
|
.\" * furnished to do so, under the terms of the COPYING file.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
.\" * KIND, either express or implied.
|
||||||
|
.\" *
|
||||||
|
.\" **************************************************************************
|
||||||
|
.\"
|
||||||
|
.TH CURLOPT_CAINFO 3 "17 Jun 2014" "libcurl 7.37.0" "curl_easy_setopt options"
|
||||||
|
.SH NAME
|
||||||
|
CURLOPT_CAINFO \- path to Certificate Authority (CA) bundle
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_CAINFO, char *path);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a char * to a zero terminated string naming a file holding one or more
|
||||||
|
certificates to verify the peer with.
|
||||||
|
|
||||||
|
If \fICURLOPT_SSL_VERIFYPEER(3)\fP is zero and you avoid verifying the
|
||||||
|
server's certificate, \fICURLOPT_CAINFO(3)\fP need not even indicate an
|
||||||
|
accessible file.
|
||||||
|
|
||||||
|
This option is by default set to the system path where libcurl's cacert bundle
|
||||||
|
is assumed to be stored, as established at build time.
|
||||||
|
|
||||||
|
If curl is built against the NSS SSL library, the NSS PEM PKCS#11 module
|
||||||
|
(libnsspem.so) needs to be available for this option to work properly.
|
||||||
|
.SH DEFAULT
|
||||||
|
Built-in system specific
|
||||||
|
.SH PROTOCOLS
|
||||||
|
All TLS based protocols: HTTPS, FTPS, IMAPS, POP3, SMTPS etc.
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
If built TLS enabled
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR CURLOPT_SSL_VERIFYPEER "(3), " CURLOPT_SSL_VERIFYHOST "(3), "
|
47
docs/libcurl/opts/CURLOPT_FILETIME.3
Normal file
47
docs/libcurl/opts/CURLOPT_FILETIME.3
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
|
.\" * you should have received as part of this distribution. The terms
|
||||||
|
.\" * are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
.\" *
|
||||||
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
.\" * copies of the Software, and permit persons to whom the Software is
|
||||||
|
.\" * furnished to do so, under the terms of the COPYING file.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
.\" * KIND, either express or implied.
|
||||||
|
.\" *
|
||||||
|
.\" **************************************************************************
|
||||||
|
.\"
|
||||||
|
.TH CURLOPT_FILETIME 3 "17 Jun 2014" "libcurl 7.37.0" "curl_easy_setopt options"
|
||||||
|
.SH NAME
|
||||||
|
CURLOPT_FILETIME \- get the modification time of the remote resource
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_FILETIME, long gettime);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a long. If it is 1, libcurl will attempt to get the modification time of
|
||||||
|
the remote document in this operation. This requires that the remote server
|
||||||
|
sends the time or replies to a time querying command. The
|
||||||
|
\fIcurl_easy_getinfo(3)\fP function with the \fICURLINFO_FILETIME\fP argument
|
||||||
|
can be used after a transfer to extract the received time (if any).
|
||||||
|
.SH DEFAULT
|
||||||
|
0
|
||||||
|
.SH PROTOCOLS
|
||||||
|
HTTP, FTP, SFTP, FILE
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Always
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR curl_easy_getinfo "(3), "
|
50
docs/libcurl/opts/CURLOPT_FORBID_REUSE.3
Normal file
50
docs/libcurl/opts/CURLOPT_FORBID_REUSE.3
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
|
.\" * you should have received as part of this distribution. The terms
|
||||||
|
.\" * are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
.\" *
|
||||||
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
.\" * copies of the Software, and permit persons to whom the Software is
|
||||||
|
.\" * furnished to do so, under the terms of the COPYING file.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
.\" * KIND, either express or implied.
|
||||||
|
.\" *
|
||||||
|
.\" **************************************************************************
|
||||||
|
.\"
|
||||||
|
.TH CURLOPT_FORBID_REUSE 3 "17 Jun 2014" "libcurl 7.37.0" "curl_easy_setopt options"
|
||||||
|
.SH NAME
|
||||||
|
CURLOPT_FORBID_REUSE \- make connection get closed at once after use
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_FORBID_REUSE, long close);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a long. Set \fIclose\fP to 1 to make libcurl explicitly close the
|
||||||
|
connection when done with the transfer. Normally, libcurl keeps all
|
||||||
|
connections alive when done with one transfer in case a succeeding one follows
|
||||||
|
that can re-use them. This option should be used with caution and only if you
|
||||||
|
understand what it does as it can seriously impact performance.
|
||||||
|
|
||||||
|
Set to 0 to have libcurl keep the connection open for possible later re-use
|
||||||
|
(default behavior).
|
||||||
|
.SH DEFAULT
|
||||||
|
0
|
||||||
|
.SH PROTOCOLS
|
||||||
|
Most
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Always
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR CURLOPT_FRESH_CONNECT "(3), " CURLOPT_MAXCONNECTS "(3), "
|
52
docs/libcurl/opts/CURLOPT_FRESH_CONNECT.3
Normal file
52
docs/libcurl/opts/CURLOPT_FRESH_CONNECT.3
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
|
.\" * you should have received as part of this distribution. The terms
|
||||||
|
.\" * are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
.\" *
|
||||||
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
.\" * copies of the Software, and permit persons to whom the Software is
|
||||||
|
.\" * furnished to do so, under the terms of the COPYING file.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
.\" * KIND, either express or implied.
|
||||||
|
.\" *
|
||||||
|
.\" **************************************************************************
|
||||||
|
.\"
|
||||||
|
.TH CURLOPT_FRESH_CONNECT 3 "17 Jun 2014" "libcurl 7.37.0" "curl_easy_setopt options"
|
||||||
|
.SH NAME
|
||||||
|
CURLOPT_FRESH_CONNECT \- force a new connection to be used
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_FRESH_CONNECT, long fresh);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a long. Set to 1 to make the next transfer use a new (fresh) connection
|
||||||
|
by force instead of trying to re-use an existing one. This option should be
|
||||||
|
used with caution and only if you understand what it does as it may seriously
|
||||||
|
impact performance.
|
||||||
|
|
||||||
|
Related functionality is \fICURLOPT_FORBID_REUSE(3)\fP which makes sure the
|
||||||
|
connection is closed after use so that it won't be re-used.
|
||||||
|
|
||||||
|
Set \fIfresh\fP to 0 to have libcurl attempt re-using an existing connection
|
||||||
|
(default behavior).
|
||||||
|
.SH DEFAULT
|
||||||
|
0
|
||||||
|
.SH PROTOCOLS
|
||||||
|
Most
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Always
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR CURLOPT_FORBID_REUSE "(3), "
|
51
docs/libcurl/opts/CURLOPT_HTTPPROXYTUNNEL.3
Normal file
51
docs/libcurl/opts/CURLOPT_HTTPPROXYTUNNEL.3
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
|
.\" * you should have received as part of this distribution. The terms
|
||||||
|
.\" * are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
.\" *
|
||||||
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
.\" * copies of the Software, and permit persons to whom the Software is
|
||||||
|
.\" * furnished to do so, under the terms of the COPYING file.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
.\" * KIND, either express or implied.
|
||||||
|
.\" *
|
||||||
|
.\" **************************************************************************
|
||||||
|
.\"
|
||||||
|
.TH CURLOPT_HTTPPROXYTUNNEL 3 "17 Jun 2014" "libcurl 7.37.0" "curl_easy_setopt options"
|
||||||
|
.SH NAME
|
||||||
|
CURLOPT_HTTPPROXYTUNNEL \- tunnel through HTTP proxy
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HTTPPROXYTUNNEL, long tunnel);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Set the parameter to 1 to make libcurl tunnel all operations through the HTTP
|
||||||
|
proxy. There is a big difference between using a proxy and to tunnel through
|
||||||
|
it. If you don't know what this means, you probably don't want this tunneling
|
||||||
|
option.
|
||||||
|
|
||||||
|
Tunneling essentially means that a CONNECT is sent to the proxy, asking it to
|
||||||
|
connect to a remote host on a specific port number and then the traffic is
|
||||||
|
just passed through the proxy. Proxies tend to whitelist specific port numbers
|
||||||
|
it allows CONNECT requests to and often only port 80 and 443 are allowed.
|
||||||
|
.SH DEFAULT
|
||||||
|
0
|
||||||
|
.SH PROTOCOLS
|
||||||
|
All network protocols
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Always
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR CURLOPT_PROXY "(3), "
|
54
docs/libcurl/opts/CURLOPT_INTERFACE.3
Normal file
54
docs/libcurl/opts/CURLOPT_INTERFACE.3
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
|
.\" * you should have received as part of this distribution. The terms
|
||||||
|
.\" * are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
.\" *
|
||||||
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
.\" * copies of the Software, and permit persons to whom the Software is
|
||||||
|
.\" * furnished to do so, under the terms of the COPYING file.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
.\" * KIND, either express or implied.
|
||||||
|
.\" *
|
||||||
|
.\" **************************************************************************
|
||||||
|
.\"
|
||||||
|
.TH CURLOPT_INTERFACE 3 "17 Jun 2014" "libcurl 7.37.0" "curl_easy_setopt options"
|
||||||
|
.SH NAME
|
||||||
|
CURLOPT_INTERFACE \- source interface for outgoing traffic
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_INTERFACE, char *interface);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a char * as parameter. This sets the \fIinterface\fP name to use as
|
||||||
|
outgoing network interface. The name can be an interface name, an IP address,
|
||||||
|
or a host name.
|
||||||
|
|
||||||
|
If the parameter starts with "if!" then it is treated as only as interface
|
||||||
|
name and no attempt will ever be named to do treat it as an IP address or to
|
||||||
|
do name resolution on it. If the parameter starts with \&"host!" it is
|
||||||
|
treated as either an IP address or a hostname. Hostnames are resolved
|
||||||
|
synchronously. Using the if! format is highly recommended when using the
|
||||||
|
multi interfaces to avoid allowing the code to block. If "if!" is specified
|
||||||
|
but the parameter does not match an existing interface, CURLE_INTERFACE_FAILED
|
||||||
|
is returned from the libcurl function used to perform the transfer.
|
||||||
|
.SH DEFAULT
|
||||||
|
NULL, use whatever the TCP stack finds suitable
|
||||||
|
.SH PROTOCOLS
|
||||||
|
All
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
The "if!" and "host!" syntax was added in 7.24.0.
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR CURLOPT_SOCKOPTFUNCTION "(3), " CURLOPT_TCP_NODELAY "(3), "
|
47
docs/libcurl/opts/CURLOPT_KRBLEVEL.3
Normal file
47
docs/libcurl/opts/CURLOPT_KRBLEVEL.3
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
|
.\" * you should have received as part of this distribution. The terms
|
||||||
|
.\" * are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
.\" *
|
||||||
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
.\" * copies of the Software, and permit persons to whom the Software is
|
||||||
|
.\" * furnished to do so, under the terms of the COPYING file.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
.\" * KIND, either express or implied.
|
||||||
|
.\" *
|
||||||
|
.\" **************************************************************************
|
||||||
|
.\"
|
||||||
|
.TH CURLOPT_KRBLEVEL 3 "17 Jun 2014" "libcurl 7.37.0" "curl_easy_setopt options"
|
||||||
|
.SH NAME
|
||||||
|
CURLOPT_KRBLEVEL \- set FTP kerberos security level
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_KRBLEVEL, char *level);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a char * as parameter. Set the kerberos security level for FTP; this also
|
||||||
|
enables kerberos awareness. This is a string that should match one of the
|
||||||
|
following: \&'clear', \&'safe', \&'confidential' or \&'private'. If the
|
||||||
|
string is set but doesn't match one of these, 'private' will be used. Set the
|
||||||
|
string to NULL to disable kerberos support for FTP.
|
||||||
|
.SH DEFAULT
|
||||||
|
NULL
|
||||||
|
.SH PROTOCOLS
|
||||||
|
FTP
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
This option was known as CURLOPT_KRB4LEVEL up to 7.16.3
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR CURLOPT_KRBLEVEL "(3), " CURLOPT_FTP_SSL "(3), "
|
59
docs/libcurl/opts/CURLOPT_MAXCONNECTS.3
Normal file
59
docs/libcurl/opts/CURLOPT_MAXCONNECTS.3
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
|
.\" * you should have received as part of this distribution. The terms
|
||||||
|
.\" * are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
.\" *
|
||||||
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
.\" * copies of the Software, and permit persons to whom the Software is
|
||||||
|
.\" * furnished to do so, under the terms of the COPYING file.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
.\" * KIND, either express or implied.
|
||||||
|
.\" *
|
||||||
|
.\" **************************************************************************
|
||||||
|
.\"
|
||||||
|
.TH CURLOPT_MAXCONNECTS 3 "17 Jun 2014" "libcurl 7.37.0" "curl_easy_setopt options"
|
||||||
|
.SH NAME
|
||||||
|
CURLOPT_MAXCONNECTS \- set connection cache size
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_MAXCONNECTS, long amount);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a long. The set number will be the persistent connection cache size. The
|
||||||
|
set \fIamount\fP will be the maximum amount of simultaneously open connections
|
||||||
|
that libcurl may cache in cache associated with this handle. Default is 5, and
|
||||||
|
there isn't much point in changing this value unless you are perfectly aware
|
||||||
|
of how this works and changes libcurl's behaviour. This concerns connections
|
||||||
|
using any of the protocols that support persistent connections.
|
||||||
|
|
||||||
|
When reaching the maximum limit, curl closes the oldest one in the cache to
|
||||||
|
prevent increasing the number of open connections.
|
||||||
|
|
||||||
|
If you already have performed transfers with this curl handle, setting a
|
||||||
|
smaller \fICURLOPT_MAXCONNECTS(3)\fP than before may cause open connections to
|
||||||
|
get closed unnecessarily.
|
||||||
|
|
||||||
|
If you add this easy handle to a multi handle, this setting is not
|
||||||
|
acknowledged, and you must instead use \fIcurl_multi_setopt(3)\fP and the
|
||||||
|
\fICURLMOPT_MAXCONNECTS\fP option.
|
||||||
|
.SH DEFAULT
|
||||||
|
5
|
||||||
|
.SH PROTOCOLS
|
||||||
|
Most
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Always
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR CURLMOPT_MAXCONNECTS "(3), " CURLOPT_MAXREDIRS "(3), "
|
50
docs/libcurl/opts/CURLOPT_MAXREDIRS.3
Normal file
50
docs/libcurl/opts/CURLOPT_MAXREDIRS.3
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
|
.\" * you should have received as part of this distribution. The terms
|
||||||
|
.\" * are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
.\" *
|
||||||
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
.\" * copies of the Software, and permit persons to whom the Software is
|
||||||
|
.\" * furnished to do so, under the terms of the COPYING file.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
.\" * KIND, either express or implied.
|
||||||
|
.\" *
|
||||||
|
.\" **************************************************************************
|
||||||
|
.\"
|
||||||
|
.TH CURLOPT_MAXREDIRS 3 "17 Jun 2014" "libcurl 7.37.0" "curl_easy_setopt options"
|
||||||
|
.SH NAME
|
||||||
|
CURLOPT_MAXREDIRS \- maximum number of redirects allowed
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_MAXREDIRS, long amount);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a long. The set number will be the redirection limit \fIamount\fP. If
|
||||||
|
that many redirections have been followed, the next redirect will cause an
|
||||||
|
error (\fICURLE_TOO_MANY_REDIRECTS\fP). This option only makes sense if the
|
||||||
|
\fICURLOPT_FOLLOWLOCATION(3)\fP is used at the same time.
|
||||||
|
|
||||||
|
Setting the limit to 0 will make libcurl refuse any redirect.
|
||||||
|
|
||||||
|
Set it to -1 for an infinite number of redirects.
|
||||||
|
.SH DEFAULT
|
||||||
|
-1, unlimited
|
||||||
|
.SH PROTOCOLS
|
||||||
|
HTTP
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Along with HTTP
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if HTTP is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR CURLOPT_FOLLOWLOCATION "(3), "
|
48
docs/libcurl/opts/CURLOPT_POSTFIELDSIZE.3
Normal file
48
docs/libcurl/opts/CURLOPT_POSTFIELDSIZE.3
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
|
.\" * you should have received as part of this distribution. The terms
|
||||||
|
.\" * are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
.\" *
|
||||||
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
.\" * copies of the Software, and permit persons to whom the Software is
|
||||||
|
.\" * furnished to do so, under the terms of the COPYING file.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
.\" * KIND, either express or implied.
|
||||||
|
.\" *
|
||||||
|
.\" **************************************************************************
|
||||||
|
.\"
|
||||||
|
.TH CURLOPT_POSTFIELDSIZE 3 "17 Jun 2014" "libcurl 7.37.0" "curl_easy_setopt options"
|
||||||
|
.SH NAME
|
||||||
|
CURLOPT_POSTFIELDSIZE \- size of POST data pointed to
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_POSTFIELDSIZE, long size);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
If you want to post data to the server without having libcurl do a strlen() to
|
||||||
|
measure the data size, this option must be used. When this option is used you
|
||||||
|
can post fully binary data, which otherwise is likely to fail. If this size is
|
||||||
|
set to -1, the library will use strlen() to get the size.
|
||||||
|
|
||||||
|
If you post more than 2GB, use \fICURLOPT_POSTFIELDSIZE_LARGE(3)\fP.
|
||||||
|
.SH DEFAULT
|
||||||
|
-1
|
||||||
|
.SH PROTOCOLS
|
||||||
|
HTTP
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Along with HTTP
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if HTTP is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR CURLOPT_POSTFIELDS "(3), " CURLOPT_POSTFIELDSIZE_LARGE "(3), "
|
47
docs/libcurl/opts/CURLOPT_PROXYPORT.3
Normal file
47
docs/libcurl/opts/CURLOPT_PROXYPORT.3
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
|
.\" * you should have received as part of this distribution. The terms
|
||||||
|
.\" * are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
.\" *
|
||||||
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
.\" * copies of the Software, and permit persons to whom the Software is
|
||||||
|
.\" * furnished to do so, under the terms of the COPYING file.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
.\" * KIND, either express or implied.
|
||||||
|
.\" *
|
||||||
|
.\" **************************************************************************
|
||||||
|
.\"
|
||||||
|
.TH CURLOPT_PROXYPORT 3 "17 Jun 2014" "libcurl 7.37.0" "curl_easy_setopt options"
|
||||||
|
.SH NAME
|
||||||
|
CURLOPT_PROXYPORT \- port number the proxy listens on
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXYPORT, long port);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a long with this option to set the proxy port to connect to unless it is
|
||||||
|
specified in the proxy string \fICURLOPT_PROXY(3)\fP or uses the default one.
|
||||||
|
|
||||||
|
While this accepts a 'long', the port number is 16 bit so it can't be larger
|
||||||
|
than 65535.
|
||||||
|
.SH DEFAULT
|
||||||
|
0, not specified which makes it use the default port
|
||||||
|
.SH PROTOCOLS
|
||||||
|
All
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Always
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR CURLOPT_PROXY "(3), " CURLOPT_PROXYTYPE "(3), "
|
44
docs/libcurl/opts/CURLOPT_RANDOM_FILE.3
Normal file
44
docs/libcurl/opts/CURLOPT_RANDOM_FILE.3
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
|
.\" * you should have received as part of this distribution. The terms
|
||||||
|
.\" * are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
.\" *
|
||||||
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
.\" * copies of the Software, and permit persons to whom the Software is
|
||||||
|
.\" * furnished to do so, under the terms of the COPYING file.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
.\" * KIND, either express or implied.
|
||||||
|
.\" *
|
||||||
|
.\" **************************************************************************
|
||||||
|
.\"
|
||||||
|
.TH CURLOPT_RANDOM_FILE 3 "17 Jun 2014" "libcurl 7.37.0" "curl_easy_setopt options"
|
||||||
|
.SH NAME
|
||||||
|
CURLOPT_RANDOM_FILE \- specify a source for random data
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_RANDOM_FILE, char *path);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a char * to a zero terminated file name. The file will be used to read
|
||||||
|
from to seed the random engine for SSL and more.
|
||||||
|
.SH DEFAULT
|
||||||
|
NULL, not used
|
||||||
|
.SH PROTOCOLS
|
||||||
|
All
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Always
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR CURLOPT_EGDSOCKET "(3), "
|
65
docs/libcurl/opts/CURLOPT_SSL_VERIFYPEER.3
Normal file
65
docs/libcurl/opts/CURLOPT_SSL_VERIFYPEER.3
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
|
.\" * you should have received as part of this distribution. The terms
|
||||||
|
.\" * are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
.\" *
|
||||||
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
.\" * copies of the Software, and permit persons to whom the Software is
|
||||||
|
.\" * furnished to do so, under the terms of the COPYING file.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
.\" * KIND, either express or implied.
|
||||||
|
.\" *
|
||||||
|
.\" **************************************************************************
|
||||||
|
.\"
|
||||||
|
.TH CURLOPT_SSL_VERIFYPEER 3 "17 Jun 2014" "libcurl 7.37.0" "curl_easy_setopt options"
|
||||||
|
.SH NAME
|
||||||
|
CURLOPT_SSL_VERIFYPEER \- verify the peer's SSL certificate
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SSL_VERIFYPEER, long verify);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Pass a long as parameter to enable or disable.
|
||||||
|
|
||||||
|
This option determines whether curl verifies the authenticity of the peer's
|
||||||
|
certificate. A value of 1 means curl verifies; 0 (zero) means it doesn't.
|
||||||
|
|
||||||
|
When negotiating a TLS or SSL connection, the server sends a certificate
|
||||||
|
indicating its identity. Curl verifies whether the certificate is authentic,
|
||||||
|
i.e. that you can trust that the server is who the certificate says it is.
|
||||||
|
This trust is based on a chain of digital signatures, rooted in certification
|
||||||
|
authority (CA) certificates you supply. curl uses a default bundle of CA
|
||||||
|
certificates (the path for that is determined at build time) and you can
|
||||||
|
specify alternate certificates with the \fICURLOPT_CAINFO(3)\fP option or the
|
||||||
|
\fICURLOPT_CAPATH(3)\fP option.
|
||||||
|
|
||||||
|
When \fICURLOPT_SSL_VERIFYPEER(3)\fP is enabled, and the verification fails to
|
||||||
|
prove that the certificate is authentic, the connection fails. When the
|
||||||
|
option is zero, the peer certificate verification succeeds regardless.
|
||||||
|
|
||||||
|
Authenticating the certificate is not enough to be sure about the server. You
|
||||||
|
typically also want to ensure that the server is the server you mean to be
|
||||||
|
talking to. Use \fICURLOPT_SSL_VERIFYHOST(3)\fP for that. The check that the
|
||||||
|
host name in the certificate is valid for the host name you're connecting to
|
||||||
|
is done independently of the \fICURLOPT_SSL_VERIFYPEER(3)\fP option.
|
||||||
|
.SH DEFAULT
|
||||||
|
By default, curl assumes a value of 1.
|
||||||
|
.SH PROTOCOLS
|
||||||
|
All TLS based protocols: HTTPS, FTPS, IMAPS, POP3, SMTPS etc.
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
If built TLS enabled.
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR CURLOPT_SSL_VERIFYHOST "(3), "
|
47
docs/libcurl/opts/CURLOPT_TELNETOPTIONS.3
Normal file
47
docs/libcurl/opts/CURLOPT_TELNETOPTIONS.3
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
.\" **************************************************************************
|
||||||
|
.\" * _ _ ____ _
|
||||||
|
.\" * Project ___| | | | _ \| |
|
||||||
|
.\" * / __| | | | |_) | |
|
||||||
|
.\" * | (__| |_| | _ <| |___
|
||||||
|
.\" * \___|\___/|_| \_\_____|
|
||||||
|
.\" *
|
||||||
|
.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is licensed as described in the file COPYING, which
|
||||||
|
.\" * you should have received as part of this distribution. The terms
|
||||||
|
.\" * are also available at http://curl.haxx.se/docs/copyright.html.
|
||||||
|
.\" *
|
||||||
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||||
|
.\" * copies of the Software, and permit persons to whom the Software is
|
||||||
|
.\" * furnished to do so, under the terms of the COPYING file.
|
||||||
|
.\" *
|
||||||
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||||
|
.\" * KIND, either express or implied.
|
||||||
|
.\" *
|
||||||
|
.\" **************************************************************************
|
||||||
|
.\"
|
||||||
|
.TH CURLOPT_TELNETOPTIONS 3 "17 Jun 2014" "libcurl 7.37.0" "curl_easy_setopt options"
|
||||||
|
.SH NAME
|
||||||
|
CURLOPT_TELNETOPTIONS \- custom telnet options
|
||||||
|
.SH SYNOPSIS
|
||||||
|
#include <curl/curl.h>
|
||||||
|
|
||||||
|
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_TELNETOPTIONS,
|
||||||
|
struct curl_slist *cmds);
|
||||||
|
.SH DESCRIPTION
|
||||||
|
Provide a pointer to a curl_slist with variables to pass to the telnet
|
||||||
|
negotiations. The variables should be in the format <option=value>. libcurl
|
||||||
|
supports the options 'TTYPE', 'XDISPLOC' and 'NEW_ENV'. See the TELNET
|
||||||
|
standard for details.
|
||||||
|
.SH DEFAULT
|
||||||
|
NULL
|
||||||
|
.SH PROTOCOLS
|
||||||
|
TELNET
|
||||||
|
.SH EXAMPLE
|
||||||
|
TODO
|
||||||
|
.SH AVAILABILITY
|
||||||
|
Along with TELNET
|
||||||
|
.SH RETURN VALUE
|
||||||
|
Returns CURLE_OK if TELNET is supported, and CURLE_UNKNOWN_OPTION if not.
|
||||||
|
.SH "SEE ALSO"
|
||||||
|
.BR CURLOPT_HTTPHEADER "(3), " CURLOPT_QUOTE "(3), "
|
Loading…
Reference in New Issue
Block a user