Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
opts: 19 more CURLINFO_* options made into stand-alone man pages
- Loading branch information
Showing
20 changed files
with
929 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
.\" ************************************************************************** | ||
.\" * _ _ ____ _ | ||
.\" * Project ___| | | | _ \| | | ||
.\" * / __| | | | |_) | | | ||
.\" * | (__| |_| | _ <| |___ | ||
.\" * \___|\___/|_| \_\_____| | ||
.\" * | ||
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_ACTIVESOCKET 3 "12 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options" | ||
.SH NAME | ||
CURLINFO_ACTIVESOCKET \- get the active socket | ||
.SH SYNOPSIS | ||
#include <curl/curl.h> | ||
|
||
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_ACTIVESOCKET, | ||
curl_socket_t *socket); | ||
.SH DESCRIPTION | ||
Pass a pointer to a curl_socket_t to receive the active socket used by this | ||
curl session. If the socket is no longer valid, \fICURL_SOCKET_BAD\fP is | ||
returned. When you finish working with the socket, you must call | ||
\fIcurl_easy_cleanup(3)\fP as usual on the easy handle and let libcurl close | ||
the socket and cleanup other resources associated with the handle. This is | ||
typically used in combination with \fICURLOPT_CONNECT_ONLY(3)\fP. | ||
.SH PROTOCOLS | ||
All | ||
.SH EXAMPLE | ||
TODO | ||
.SH AVAILABILITY | ||
Added in 7.45.0 | ||
.SH RETURN VALUE | ||
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. | ||
.SH "SEE ALSO" | ||
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), " | ||
.BR CURLINFO_ACTIVESOCKET "(3), " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
.\" ************************************************************************** | ||
.\" * _ _ ____ _ | ||
.\" * Project ___| | | | _ \| | | ||
.\" * / __| | | | |_) | | | ||
.\" * | (__| |_| | _ <| |___ | ||
.\" * \___|\___/|_| \_\_____| | ||
.\" * | ||
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_CERTINFO 3 "12 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options" | ||
.SH NAME | ||
CURLINFO_CERTINFO \- get the TLS certificate chain | ||
.SH SYNOPSIS | ||
#include <curl/curl.h> | ||
|
||
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_CERTINFO, | ||
struct curl_certinfo *chainp); | ||
.SH DESCRIPTION | ||
Pass a pointer to a 'struct curl_certinfo *' and you'll get it set to point to | ||
struct that holds a number of linked lists with info about the certificate | ||
chain, assuming you had \fICURLOPT_CERTINFO(3)\fP enabled when the request was | ||
made. The struct reports how many certs it found and then you can extract info | ||
for each of those certs by following the linked lists. The info chain is | ||
provided in a series of data in the format "name:content" where the content is | ||
for the specific named data. See also the certinfo.c example. | ||
.SH PROTOCOLS | ||
All TLS-based | ||
.SH EXAMPLE | ||
TODO | ||
.SH AVAILABILITY | ||
This option is only working in libcurl built with OpenSSL, NSS or GSKit | ||
support. | ||
|
||
Added in 7.19.1 | ||
.SH RETURN VALUE | ||
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. | ||
.SH "SEE ALSO" | ||
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
.\" ************************************************************************** | ||
.\" * _ _ ____ _ | ||
.\" * Project ___| | | | _ \| | | ||
.\" * / __| | | | |_) | | | ||
.\" * | (__| |_| | _ <| |___ | ||
.\" * \___|\___/|_| \_\_____| | ||
.\" * | ||
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_CONDITION_UNMET 3 "1 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options" | ||
.SH NAME | ||
CURLINFO_CONDITION_UNMET \- get info on unmet time conditional | ||
.SH SYNOPSIS | ||
#include <curl/curl.h> | ||
|
||
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_CONDITION_UNMET, long *unmet); | ||
.SH DESCRIPTION | ||
Pass a pointer to a long to receive the number 1 if the condition provided in | ||
the previous request didn't match (see \fICURLOPT_TIMECONDITION(3)\fP). Alas, | ||
if this returns a 1 you know that the reason you didn't get data in return is | ||
because it didn't fulfill the condition. The long ths argument points to will | ||
get a zero stored if the condition instead was met. | ||
.SH PROTOCOLS | ||
HTTP and some | ||
.SH EXAMPLE | ||
TODO | ||
.SH AVAILABILITY | ||
Added in 7.19.4 | ||
.SH RETURN VALUE | ||
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. | ||
.SH "SEE ALSO" | ||
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
.\" ************************************************************************** | ||
.\" * _ _ ____ _ | ||
.\" * Project ___| | | | _ \| | | ||
.\" * / __| | | | |_) | | | ||
.\" * | (__| |_| | _ <| |___ | ||
.\" * \___|\___/|_| \_\_____| | ||
.\" * | ||
.\" * Copyright (C) 1998 - 2015, 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 CURLINFO_COOKIELIST 3 "1 Sep 2015" "libcurl 7.44.0" "curl_easy_getinfo options" | ||
.SH NAME | ||
CURLINFO_COOKIELIST \- get all known cookies | ||
.SH SYNOPSIS | ||
#include <curl/curl.h> | ||
|
||
CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_COOKIELIST, | ||
struct curl_slist **cookies); | ||
.SH DESCRIPTION | ||
Pass a pointer to a 'struct curl_slist *' to receive a linked-list of all | ||
cookies cURL knows (expired ones, too). Don't forget to call | ||
\fIcurl_slist_free_all(3)\fP on the list after it has been used. If there are | ||
no cookies (cookies for the handle have not been enabled or simply none have | ||
been received) 'struct curl_slist *' will be set to point to NULL. | ||
|
||
Since 7.43.0 cookies that were imported in the Set-Cookie format without a | ||
domain name are not exported by this option. | ||
.SH PROTOCOLS | ||
HTTP(S) | ||
.SH EXAMPLE | ||
TODO | ||
.SH AVAILABILITY | ||
Added in 7.14.1 | ||
.SH RETURN VALUE | ||
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. | ||
.SH "SEE ALSO" | ||
.BR curl_easy_getinfo "(3), " curl_easy_setopt "(3), " |
Oops, something went wrong.