mirror of
https://github.com/curl/curl.git
synced 2026-07-30 13:58:22 +03:00
parent
db02e0e980
commit
307b7543ea
19 changed files with 26 additions and 26 deletions
|
|
@ -37,7 +37,7 @@ CURLHcode curl_easy_header(CURL *easy,
|
|||
.SH DESCRIPTION
|
||||
\fIcurl_easy_header(3)\fP returns a pointer to a "curl_header" struct in
|
||||
\fBhout\fP with data for the HTTP response header \fIname\fP. The case
|
||||
insensitive nul-terminated header name should be specified without colon.
|
||||
insensitive null-terminated header name should be specified without colon.
|
||||
|
||||
\fIindex\fP 0 means asking for the first instance of the header. If the
|
||||
returned header struct has \fBamount\fP set larger than 1, it means there are
|
||||
|
|
@ -94,7 +94,7 @@ but it might have a different case.
|
|||
|
||||
The data \fBvalue\fP field points to, comes exactly as delivered over the
|
||||
network but with leading and trailing whitespace and newlines stripped
|
||||
off. The `value` data is nul-terminated. For legacy HTTP/1 "folded headers",
|
||||
off. The `value` data is null-terminated. For legacy HTTP/1 "folded headers",
|
||||
this API provides the full single value in an unfolded manner with a single
|
||||
whitespace between the lines.
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ typedef enum {
|
|||
CURLOT_VALUES, /* (a defined set or bitmask) */
|
||||
CURLOT_OFF_T, /* curl_off_t (a range of values) */
|
||||
CURLOT_OBJECT, /* pointer (void *) */
|
||||
CURLOT_STRING, /* (char * to zero terminated buffer) */
|
||||
CURLOT_STRING, /* (char * to null-terminated buffer) */
|
||||
CURLOT_SLIST, /* (struct curl_slist *) */
|
||||
CURLOT_CBPTR, /* (void * passed as-is to a callback) */
|
||||
CURLOT_BLOB, /* blob (struct curl_blob *) */
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ the POST data from the read callback. If you want to send a zero-byte POST set
|
|||
\fICURLOPT_POSTFIELDS(3)\fP to an empty string, or set \fICURLOPT_POST(3)\fP to
|
||||
1 and \fICURLOPT_POSTFIELDSIZE(3)\fP to 0.
|
||||
|
||||
libcurl will use assume this option points to a nul-terminated string unless
|
||||
libcurl will use assume this option points to a null-terminated string unless
|
||||
you also set \fICURLOPT_POSTFIELDSIZE(3)\fP to specify the length of the
|
||||
provided data, which then is strictly required if you want to send off nul
|
||||
bytes included in the data.
|
||||
|
|
|
|||
|
|
@ -59,12 +59,12 @@ The callback function must return \fICURL_PREREQFUNC_OK\fP on success, or
|
|||
|
||||
This function is passed the following arguments:
|
||||
.IP conn_primary_ip
|
||||
A nul-terminated pointer to a C string containing the primary IP of the remote
|
||||
server established with this connection. For FTP, this is the IP for the
|
||||
control connection. IPv6 addresses are represented without surrounding
|
||||
A null-terminated pointer to a C string containing the primary IP of the
|
||||
remote server established with this connection. For FTP, this is the IP for
|
||||
the control connection. IPv6 addresses are represented without surrounding
|
||||
brackets.
|
||||
.IP conn_local_ip
|
||||
A nul-terminated pointer to a C string containing the originating IP for this
|
||||
A null-terminated pointer to a C string containing the originating IP for this
|
||||
connection. IPv6 addresses are represented without surrounding brackets.
|
||||
.IP conn_primary_port
|
||||
The primary port number on the remote server established with this connection.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue