docs: Spelling fixes
This commit is contained in:
parent
025dbe46df
commit
56b7663f73
@ -73,7 +73,7 @@ those transfers. With the new option `CURLOPT_PIPEWAIT` (added in 7.43.0), you
|
|||||||
can ask that a transfer should rather wait and see in case there's a
|
can ask that a transfer should rather wait and see in case there's a
|
||||||
connection for the same host in progress that might end up being possible to
|
connection for the same host in progress that might end up being possible to
|
||||||
multiplex on. It favours keeping the number of connections low to the cost of
|
multiplex on. It favours keeping the number of connections low to the cost of
|
||||||
slightly longer time to first byte transfered.
|
slightly longer time to first byte transferred.
|
||||||
|
|
||||||
Applications
|
Applications
|
||||||
------------
|
------------
|
||||||
|
@ -429,7 +429,7 @@ be the same as/similar to FTP.
|
|||||||
|
|
||||||
11.2 Honor file timestamps
|
11.2 Honor file timestamps
|
||||||
|
|
||||||
The timestamp of the transfered file should reflect that of the original file.
|
The timestamp of the transferred file should reflect that of the original file.
|
||||||
|
|
||||||
11.3 Use NTLMv2
|
11.3 Use NTLMv2
|
||||||
|
|
||||||
|
@ -490,7 +490,7 @@ int main(int argc, char **argv) {
|
|||||||
BIO_printf(p.errorbio,"the response has a correct mimetype : %s\n",
|
BIO_printf(p.errorbio,"the response has a correct mimetype : %s\n",
|
||||||
response);
|
response);
|
||||||
else
|
else
|
||||||
BIO_printf(p.errorbio,"the reponse doesn\'t has an acceptable "
|
BIO_printf(p.errorbio,"the response doesn\'t have an acceptable "
|
||||||
"mime type, it is %s instead of %s\n",
|
"mime type, it is %s instead of %s\n",
|
||||||
response,mimetypeaccept);
|
response,mimetypeaccept);
|
||||||
}
|
}
|
||||||
|
@ -108,7 +108,7 @@ static size_t write_callback(char *buffer,
|
|||||||
size=rembuff;
|
size=rembuff;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* realloc suceeded increase buffer size*/
|
/* realloc succeeded increase buffer size*/
|
||||||
url->buffer_len+=size - rembuff;
|
url->buffer_len+=size - rembuff;
|
||||||
url->buffer=newbuff;
|
url->buffer=newbuff;
|
||||||
}
|
}
|
||||||
@ -131,7 +131,7 @@ static int fill_buffer(URL_FILE *file, size_t want)
|
|||||||
CURLMcode mc; /* curl_multi_fdset() return code */
|
CURLMcode mc; /* curl_multi_fdset() return code */
|
||||||
|
|
||||||
/* only attempt to fill buffer if transactions still running and buffer
|
/* only attempt to fill buffer if transactions still running and buffer
|
||||||
* doesnt exceed required size already
|
* doesn't exceed required size already
|
||||||
*/
|
*/
|
||||||
if((!file->still_running) || (file->buffer_pos > want))
|
if((!file->still_running) || (file->buffer_pos > want))
|
||||||
return 0;
|
return 0;
|
||||||
@ -229,7 +229,7 @@ static int use_buffer(URL_FILE *file,int want)
|
|||||||
URL_FILE *url_fopen(const char *url,const char *operation)
|
URL_FILE *url_fopen(const char *url,const char *operation)
|
||||||
{
|
{
|
||||||
/* this code could check for URLs or types in the 'url' and
|
/* this code could check for URLs or types in the 'url' and
|
||||||
basicly use the real fopen() for standard files */
|
basically use the real fopen() for standard files */
|
||||||
|
|
||||||
URL_FILE *file;
|
URL_FILE *file;
|
||||||
(void)operation;
|
(void)operation;
|
||||||
|
@ -53,7 +53,7 @@ int main(void)
|
|||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
struct FtpFile ftpfile={
|
struct FtpFile ftpfile={
|
||||||
"curl.tar.gz", /* name to store the file as if succesful */
|
"curl.tar.gz", /* name to store the file as if successful */
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ int main(void)
|
|||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
struct FtpFile ftpfile={
|
struct FtpFile ftpfile={
|
||||||
"yourfile.bin", /* name to store the file as if succesful */
|
"yourfile.bin", /* name to store the file as if successful */
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ int main(void)
|
|||||||
* they have mentioned in their server certificate's commonName (or
|
* they have mentioned in their server certificate's commonName (or
|
||||||
* subjectAltName) fields, libcurl will refuse to connect. You can skip
|
* subjectAltName) fields, libcurl will refuse to connect. You can skip
|
||||||
* this check, but this will make the connection less secure. */
|
* this check, but this will make the connection less secure. */
|
||||||
#ifdef SKIP_HOSTNAME_VERFICATION
|
#ifdef SKIP_HOSTNAME_VERIFICATION
|
||||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ int main(void)
|
|||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
multi_handle = curl_multi_init();
|
multi_handle = curl_multi_init();
|
||||||
|
|
||||||
/* initalize custom header list (stating that Expect: 100-continue is not
|
/* initialize custom header list (stating that Expect: 100-continue is not
|
||||||
wanted */
|
wanted */
|
||||||
headerlist = curl_slist_append(headerlist, buf);
|
headerlist = curl_slist_append(headerlist, buf);
|
||||||
if(curl && multi_handle) {
|
if(curl && multi_handle) {
|
||||||
|
@ -81,7 +81,7 @@ int main(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* 'numfds' being zero means either a timeout or no file descriptors to
|
/* 'numfds' being zero means either a timeout or no file descriptors to
|
||||||
wait for. Try timeout on first occurance, then assume no file
|
wait for. Try timeout on first occurrence, then assume no file
|
||||||
descriptors and no file descriptors to wait for means wait for 100
|
descriptors and no file descriptors to wait for means wait for 100
|
||||||
milliseconds. */
|
milliseconds. */
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ int main(void)
|
|||||||
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
/* This will retreive message 1 from the user's mailbox */
|
/* This will retrieve message 1 from the user's mailbox */
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1");
|
curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1");
|
||||||
|
|
||||||
/* Tell the multi stack about our easy handle */
|
/* Tell the multi stack about our easy handle */
|
||||||
|
@ -39,7 +39,7 @@ int main(void)
|
|||||||
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
/* This will retreive message 1 from the user's mailbox */
|
/* This will retrieve message 1 from the user's mailbox */
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1");
|
curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1");
|
||||||
|
|
||||||
/* Perform the retr */
|
/* Perform the retr */
|
||||||
|
@ -40,7 +40,7 @@ int main(void)
|
|||||||
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
/* This will retreive message 1 from the user's mailbox. Note the use of
|
/* This will retrieve message 1 from the user's mailbox. Note the use of
|
||||||
* pop3s:// rather than pop3:// to request a SSL based connection. */
|
* pop3s:// rather than pop3:// to request a SSL based connection. */
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "pop3s://pop.example.com/1");
|
curl_easy_setopt(curl, CURLOPT_URL, "pop3s://pop.example.com/1");
|
||||||
|
|
||||||
@ -60,7 +60,7 @@ int main(void)
|
|||||||
* they have mentioned in their server certificate's commonName (or
|
* they have mentioned in their server certificate's commonName (or
|
||||||
* subjectAltName) fields, libcurl will refuse to connect. You can skip
|
* subjectAltName) fields, libcurl will refuse to connect. You can skip
|
||||||
* this check, but this will make the connection less secure. */
|
* this check, but this will make the connection less secure. */
|
||||||
#ifdef SKIP_HOSTNAME_VERFICATION
|
#ifdef SKIP_HOSTNAME_VERIFICATION
|
||||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ int main(void)
|
|||||||
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
|
||||||
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
|
||||||
|
|
||||||
/* This will retreive message 1 from the user's mailbox */
|
/* This will retrieve message 1 from the user's mailbox */
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1");
|
curl_easy_setopt(curl, CURLOPT_URL, "pop3://pop.example.com/1");
|
||||||
|
|
||||||
/* In this example, we'll start with a plain text connection, and upgrade
|
/* In this example, we'll start with a plain text connection, and upgrade
|
||||||
|
@ -73,7 +73,7 @@ int main(int argc, char *argv[])
|
|||||||
CURLFORM_END);
|
CURLFORM_END);
|
||||||
|
|
||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
/* initalize custom header list (stating that Expect: 100-continue is not
|
/* initialize custom header list (stating that Expect: 100-continue is not
|
||||||
wanted */
|
wanted */
|
||||||
headerlist = curl_slist_append(headerlist, buf);
|
headerlist = curl_slist_append(headerlist, buf);
|
||||||
if(curl) {
|
if(curl) {
|
||||||
|
@ -58,7 +58,7 @@ int main(void)
|
|||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
struct FtpFile ftpfile={
|
struct FtpFile ftpfile={
|
||||||
"yourfile.bin", /* name to store the file as if succesful */
|
"yourfile.bin", /* name to store the file as if successful */
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
/* This is a simple example showing how to send mail using libcurl's SMTP
|
/* This is a simple example showing how to send mail using libcurl's SMTP
|
||||||
* capabilities. For an exmaple of using the multi interface please see
|
* capabilities. For an example of using the multi interface please see
|
||||||
* smtp-multi.c.
|
* smtp-multi.c.
|
||||||
*
|
*
|
||||||
* Note that this example requires libcurl 7.20.0 or above.
|
* Note that this example requires libcurl 7.20.0 or above.
|
||||||
|
@ -111,7 +111,7 @@ int main(void)
|
|||||||
* they have mentioned in their server certificate's commonName (or
|
* they have mentioned in their server certificate's commonName (or
|
||||||
* subjectAltName) fields, libcurl will refuse to connect. You can skip
|
* subjectAltName) fields, libcurl will refuse to connect. You can skip
|
||||||
* this check, but this will make the connection less secure. */
|
* this check, but this will make the connection less secure. */
|
||||||
#ifdef SKIP_HOSTNAME_VERFICATION
|
#ifdef SKIP_HOSTNAME_VERIFICATION
|
||||||
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@ int main(void)
|
|||||||
XML_SetElementHandler(parser, startElement, endElement);
|
XML_SetElementHandler(parser, startElement, endElement);
|
||||||
XML_SetCharacterDataHandler(parser, characterDataHandler);
|
XML_SetCharacterDataHandler(parser, characterDataHandler);
|
||||||
|
|
||||||
/* Initalize a libcurl handle. */
|
/* Initialize a libcurl handle. */
|
||||||
curl_global_init(CURL_GLOBAL_ALL ^ CURL_GLOBAL_SSL);
|
curl_global_init(CURL_GLOBAL_ALL ^ CURL_GLOBAL_SSL);
|
||||||
curl_handle = curl_easy_init();
|
curl_handle = curl_easy_init();
|
||||||
curl_easy_setopt(curl_handle, CURLOPT_URL, "http://www.w3schools.com/xml/simple.xml");
|
curl_easy_setopt(curl_handle, CURLOPT_URL, "http://www.w3schools.com/xml/simple.xml");
|
||||||
|
@ -44,7 +44,7 @@ The calling application may pass additional curl_waitfd structures which are
|
|||||||
similar to \fIpoll(2)\fP's pollfd structure to be waited on in the same call.
|
similar to \fIpoll(2)\fP's pollfd structure to be waited on in the same call.
|
||||||
|
|
||||||
On completion, if \fInumfds\fP is non-NULL, it will be populated with the
|
On completion, if \fInumfds\fP is non-NULL, it will be populated with the
|
||||||
total number of file descriptors on which interesting events occured. This
|
total number of file descriptors on which interesting events occurred. This
|
||||||
number can include both libcurl internal descriptors as well as descriptors
|
number can include both libcurl internal descriptors as well as descriptors
|
||||||
provided in \fIextra_fds\fP.
|
provided in \fIextra_fds\fP.
|
||||||
|
|
||||||
|
@ -29,8 +29,8 @@ CURLOPT_CHUNK_DATA \- custom pointer to the FTP chunk callbacks
|
|||||||
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_CHUNK_DATA, void *pointer);
|
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_CHUNK_DATA, void *pointer);
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
Pass a \fIpointer\fP that will be untouched by libcurl and passed as the ptr
|
Pass a \fIpointer\fP that will be untouched by libcurl and passed as the ptr
|
||||||
argument to the \fICURL_CHUNK_BGN_FUNTION(3)\fP and
|
argument to the \fICURL_CHUNK_BGN_FUNCTION(3)\fP and
|
||||||
\fICURL_CHUNK_END_FUNTION(3)\fP.
|
\fICURL_CHUNK_END_FUNCTION(3)\fP.
|
||||||
.SH DEFAULT
|
.SH DEFAULT
|
||||||
NULL
|
NULL
|
||||||
.SH PROTOCOLS
|
.SH PROTOCOLS
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
# Experience has shown that the symbols-in-versions file is very useful to
|
# Experience has shown that the symbols-in-versions file is very useful to
|
||||||
# applications that want to build with a wide range of libcurl versions.
|
# applications that want to build with a wide range of libcurl versions.
|
||||||
# It is however easy to get it wrong and the source gets a bit messy with all
|
# It is however easy to get it wrong and the source gets a bit messy with all
|
||||||
# the fixed numerical comparisions.
|
# the fixed numerical comparisons.
|
||||||
#
|
#
|
||||||
# The point of this script is to provide an easy-to-use macro for libcurl-
|
# The point of this script is to provide an easy-to-use macro for libcurl-
|
||||||
# using applications to do preprocessor checks for specific libcurl defines,
|
# using applications to do preprocessor checks for specific libcurl defines,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user