mirror of
https://github.com/moparisthebest/curl
synced 2025-01-10 21:48:10 -05:00
spelling fixes
Detected using the `codespell` tool. Also contains one URL protocol upgrade. Closes https://github.com/curl/curl/pull/2334
This commit is contained in:
parent
06df42410e
commit
7e35eb7729
@ -19,7 +19,7 @@ function(LIST_SPACES_APPEND_ONCE LIST_NAME)
|
||||
set(${LIST_NAME} "${NEW_LIST_SPACE}" PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
# Convinience function that does the same as LIST(FIND ...) but with a TRUE/FALSE return value.
|
||||
# Convenience function that does the same as LIST(FIND ...) but with a TRUE/FALSE return value.
|
||||
# Ex: IN_STR_LIST(MY_LIST "Searched item" WAS_FOUND)
|
||||
function(IN_STR_LIST LIST_NAME ITEM_SEARCHED RETVAL)
|
||||
list(FIND ${LIST_NAME} ${ITEM_SEARCHED} FIND_POS)
|
||||
|
@ -95,7 +95,7 @@ Ruby: [curb](https://github.com/taf2/curb) written by Ross Bamford
|
||||
|
||||
[Scilab](https://help.scilab.org/docs/current/fr_FR/getURL.html) binding by Sylvestre Ledru
|
||||
|
||||
[S-Lang](http://www.jedsoft.org/slang/modules/curl.html) by John E Davis
|
||||
[S-Lang](https://www.jedsoft.org/slang/modules/curl.html) by John E Davis
|
||||
|
||||
[Smalltalk](http://www.squeaksource.com/CurlPlugin/) Written by Danil Osipchuk
|
||||
|
||||
|
4
docs/FAQ
4
docs/FAQ
@ -218,9 +218,9 @@ FAQ
|
||||
very well at the side. Curl's output can be piped into another program or
|
||||
redirected to another file for the next program to interpret.
|
||||
|
||||
We focus on protocol related issues and improvements. If you wanna do more
|
||||
We focus on protocol related issues and improvements. If you want to do more
|
||||
magic with the supported protocols than curl currently does, chances are good
|
||||
we will agree. If you wanna add more protocols, we may very well agree.
|
||||
we will agree. If you want to add more protocols, we may very well agree.
|
||||
|
||||
If you want someone else to do all the work while you wait for us to
|
||||
implement it for you, that is not a very friendly attitude. We spend a
|
||||
|
@ -179,7 +179,7 @@ MAIL ETIQUETTE
|
||||
or just remove them completely from the mail. Note that this includes base64
|
||||
encoded HTTP Basic auth headers.
|
||||
|
||||
This public nature of the curl mailing lists makes automaticly inserted mail
|
||||
This public nature of the curl mailing lists makes automatically inserted mail
|
||||
footers about mails being "private" or "only meant for the receipient" or
|
||||
similar even more silly than usual. Because they are absolutely not private
|
||||
when sent to a public mailing list.
|
||||
|
@ -8,5 +8,5 @@ standard, more informational, meter.
|
||||
This progress bar draws a single line of '#' characters across the screen and
|
||||
shows a percentage if the transfer size is known. For transfers without a
|
||||
known size, there will be space ship (-=o=-) that moves back and forth but
|
||||
only while data is being transfered, with a set of flying hash sign symbols on
|
||||
only while data is being transferred, with a set of flying hash sign symbols on
|
||||
top.
|
||||
|
@ -77,7 +77,7 @@ int main(void)
|
||||
|
||||
/* get the file size of the local file */
|
||||
if(stat(LOCAL_FILE, &file_info)) {
|
||||
printf("Couldnt open '%s': %s\n", LOCAL_FILE, strerror(errno));
|
||||
printf("Couldn't open '%s': %s\n", LOCAL_FILE, strerror(errno));
|
||||
return 1;
|
||||
}
|
||||
fsize = (curl_off_t)file_info.st_size;
|
||||
|
@ -856,7 +856,7 @@ discussed. Instead, the only way to have SSL work over a HTTP proxy is to ask
|
||||
the proxy to tunnel trough everything without being able to check or fiddle
|
||||
with the traffic.
|
||||
|
||||
Opening an SSL connection over a HTTP proxy is therefor a matter of asking the
|
||||
Opening an SSL connection over a HTTP proxy is therefore a matter of asking the
|
||||
proxy for a straight connection to the target host on a specified port. This
|
||||
is made with the HTTP request CONNECT. ("please mr proxy, connect me to that
|
||||
remote host").
|
||||
|
@ -31,7 +31,7 @@ CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_CONDITION_UNMET, long *unmet);
|
||||
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
|
||||
because it didn't fulfill the condition. The long this argument points to will
|
||||
get a zero stored if the condition instead was met.
|
||||
.SH PROTOCOLS
|
||||
HTTP and some
|
||||
|
@ -186,8 +186,8 @@ CURL_EXTERN CURLMcode curl_multi_wait(CURLM *multi_handle,
|
||||
*
|
||||
* Returns: CURLMcode type, general multi error code. *NOTE* that this only
|
||||
* returns errors etc regarding the whole multi stack. There might
|
||||
* still have occurred problems on invidual transfers even when this
|
||||
* returns OK.
|
||||
* still have occurred problems on individual transfers even when
|
||||
* this returns OK.
|
||||
*/
|
||||
CURL_EXTERN CURLMcode curl_multi_perform(CURLM *multi_handle,
|
||||
int *running_handles);
|
||||
|
@ -26,7 +26,7 @@ my $indent = 2;
|
||||
|
||||
my $warnings;
|
||||
my $errors;
|
||||
my $supressed; # whitelisted problems
|
||||
my $suppressed; # whitelisted problems
|
||||
my $file;
|
||||
my $dir=".";
|
||||
my $wlist;
|
||||
@ -60,7 +60,7 @@ my %warnings = (
|
||||
'ASTERISKNOSPACE' => 'pointer declared without space before asterisk',
|
||||
'ASSIGNWITHINCONDITION' => 'assignment within conditional expression',
|
||||
'EQUALSNOSPACE' => 'equals sign without following space',
|
||||
'NOSPACEEQUALS' => 'equals sign without preceeding space',
|
||||
'NOSPACEEQUALS' => 'equals sign without preceding space',
|
||||
'SEMINOSPACE' => 'semicolon without following space',
|
||||
'MULTISPACE' => 'multiple spaces used when not suitable',
|
||||
);
|
||||
@ -101,7 +101,7 @@ sub checkwarn {
|
||||
}
|
||||
|
||||
if($nowarn) {
|
||||
$supressed++;
|
||||
$suppressed++;
|
||||
if($w) {
|
||||
$swarnings++;
|
||||
}
|
||||
@ -422,7 +422,7 @@ sub scanfile {
|
||||
# There is a quote here, figure out whether the comma is
|
||||
# within a string or '' or not.
|
||||
if($pref =~ /\"/) {
|
||||
# withing a string
|
||||
# within a string
|
||||
}
|
||||
elsif($pref =~ /\'$/) {
|
||||
# a single letter
|
||||
@ -596,7 +596,7 @@ sub scanfile {
|
||||
|
||||
if($errors || $warnings || $verbose) {
|
||||
printf "checksrc: %d errors and %d warnings\n", $errors, $warnings;
|
||||
if($supressed) {
|
||||
if($suppressed) {
|
||||
printf "checksrc: %d errors and %d warnings suppressed\n",
|
||||
$serrors,
|
||||
$swarnings;
|
||||
|
@ -364,7 +364,7 @@ CURLcode Curl_output_ntlm_wb(struct connectdata *conn,
|
||||
case NTLMSTATE_TYPE1:
|
||||
default:
|
||||
/* Use Samba's 'winbind' daemon to support NTLM authentication,
|
||||
* by delegating the NTLM challenge/response protocal to a helper
|
||||
* by delegating the NTLM challenge/response protocol to a helper
|
||||
* in ntlm_auth.
|
||||
* http://devel.squid-cache.org/ntlm/squid_helper_protocol.html
|
||||
* https://www.samba.org/samba/docs/man/manpages-3/winbindd.8.html
|
||||
|
@ -1538,7 +1538,7 @@ static CURLcode ftp_state_type(struct connectdata *conn)
|
||||
date. */
|
||||
if(data->set.opt_no_body && ftpc->file &&
|
||||
ftp_need_type(conn, data->set.prefer_ascii)) {
|
||||
/* The SIZE command is _not_ RFC 959 specified, and therefor many servers
|
||||
/* The SIZE command is _not_ RFC 959 specified, and therefore many servers
|
||||
may not support it! It is however the only way we have to get a file's
|
||||
size! */
|
||||
|
||||
|
@ -314,7 +314,7 @@ Function RegExprFirst(SearchPattern, TheString)
|
||||
Set objRegExp = New RegExp ' create a regular expression.
|
||||
objRegExp.Pattern = SearchPattern ' sets the search pattern.
|
||||
objRegExp.IgnoreCase = TRUE ' set to ignores case.
|
||||
objRegExp.Global = TRUE ' set to gloabal search.
|
||||
objRegExp.Global = TRUE ' set to global search.
|
||||
Set Matches = objRegExp.Execute(TheString) ' do the search.
|
||||
If (Matches.Count) Then
|
||||
RegExprFirst = Matches(0).SubMatches(0) ' return first match.
|
||||
|
@ -86,7 +86,7 @@ curl_10char_object_name() {
|
||||
# curl_8char_object_name
|
||||
#
|
||||
# Same as curl_10char_object_name() description and details above, except
|
||||
# that object name is limited to 8 charcters maximum.
|
||||
# that object name is limited to 8 characters maximum.
|
||||
#
|
||||
|
||||
curl_8char_object_name() {
|
||||
|
@ -433,7 +433,7 @@ static int parsedate(const char *date, time_t *output)
|
||||
tzoff = (val/100 * 60 + val%100)*60;
|
||||
|
||||
/* the + and - prefix indicates the local time compared to GMT,
|
||||
this we need ther reversed math to get what we want */
|
||||
this we need their reversed math to get what we want */
|
||||
tzoff = date[-1]=='+'?-tzoff:tzoff;
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@
|
||||
* -incoming server requests
|
||||
* -server CSeq counter
|
||||
* -digest authentication
|
||||
* -connect thru proxy
|
||||
* -connect through proxy
|
||||
* -pipelining?
|
||||
*/
|
||||
|
||||
|
@ -389,7 +389,7 @@ ssize_t Curl_send_plain(struct connectdata *conn, int num,
|
||||
(WSAEWOULDBLOCK == err)
|
||||
#else
|
||||
/* errno may be EWOULDBLOCK or on some systems EAGAIN when it returned
|
||||
due to its inability to send off data without blocking. We therefor
|
||||
due to its inability to send off data without blocking. We therefore
|
||||
treat both error codes the same here */
|
||||
(EWOULDBLOCK == err) || (EAGAIN == err) || (EINTR == err) ||
|
||||
(EINPROGRESS == err)
|
||||
@ -456,7 +456,7 @@ ssize_t Curl_recv_plain(struct connectdata *conn, int num, char *buf,
|
||||
(WSAEWOULDBLOCK == err)
|
||||
#else
|
||||
/* errno may be EWOULDBLOCK or on some systems EAGAIN when it returned
|
||||
due to its inability to send off data without blocking. We therefor
|
||||
due to its inability to send off data without blocking. We therefore
|
||||
treat both error codes the same here */
|
||||
(EWOULDBLOCK == err) || (EAGAIN == err) || (EINTR == err)
|
||||
#endif
|
||||
|
@ -242,7 +242,7 @@ static int SHA256_Final(unsigned char *out,
|
||||
sha256_compress(md, md->buf);
|
||||
md->curlen = 0;
|
||||
}
|
||||
/* pad upto 56 bytes of zeroes */
|
||||
/* pad up to 56 bytes of zeroes */
|
||||
while(md->curlen < 56) {
|
||||
md->buf[md->curlen++] = (unsigned char)0;
|
||||
}
|
||||
|
@ -1460,7 +1460,8 @@ static CURLcode telnet_do(struct connectdata *conn, bool *done)
|
||||
if(n == 0) /* no bytes */
|
||||
break;
|
||||
|
||||
readfile_read = (DWORD)n; /* fall thru with number of bytes read */
|
||||
/* fall through with number of bytes read */
|
||||
readfile_read = (DWORD)n;
|
||||
}
|
||||
else {
|
||||
/* read from stdin */
|
||||
|
@ -4117,7 +4117,7 @@ static CURLcode create_conn(struct Curl_easy *data,
|
||||
*************************************************************/
|
||||
if(prot_missing) {
|
||||
/* We're guessing prefixes here and if we're told to use a proxy or if
|
||||
we're gonna follow a Location: later or... then we need the protocol
|
||||
we're going to follow a Location: later or... then we need the protocol
|
||||
part added so that we have a valid URL. */
|
||||
char *reurl;
|
||||
char *ch_lower;
|
||||
|
@ -1166,7 +1166,7 @@ struct Curl_http2_dep {
|
||||
};
|
||||
|
||||
/*
|
||||
* This struct is for holding data that was attemped to get sent to the user's
|
||||
* This struct is for holding data that was attempted to get sent to the user's
|
||||
* callback but is held due to pausing. One instance per type (BOTH, HEADER,
|
||||
* BODY).
|
||||
*/
|
||||
|
@ -183,8 +183,8 @@ CCSID.
|
||||
CURLINFO_COOKIELIST
|
||||
Lists returned should be released with curl_slist_free_all() after use.
|
||||
Option CURLINFO_CERTINFO is followed by a struct curl_certinfo * * and a
|
||||
CCSID. Returned structures sould be free'ed using curl_certinfo_free_all() after
|
||||
use.
|
||||
CCSID. Returned structures should be free'ed using curl_certinfo_free_all()
|
||||
after use.
|
||||
Other options are processed like in curl_easy_getinfo().
|
||||
|
||||
_ curl_pushheader_bynum_cssid() and curl_pushheader_byname_ccsid()
|
||||
@ -243,7 +243,7 @@ _ If data compression has to be supported, ZLIB development environment must
|
||||
_ Likewise, if SCP and SFTP protocols have to be compiled in, LIBSSH2
|
||||
developent environment must be installed.
|
||||
_ Install the curl source directory in IFS. Do NOT install it in the
|
||||
installation target directory (wich defaults to /curl).
|
||||
installation target directory (which defaults to /curl).
|
||||
_ Enter shell (QSH)
|
||||
_ Change current directory to the curl installation directory
|
||||
_ Change current directory to ./packages/OS400
|
||||
|
@ -1382,7 +1382,7 @@ $! search/out 'tfile1' "$_''keyterm'"
|
||||
$ severity = '$severity'
|
||||
$ endif
|
||||
$!
|
||||
$! Unix compatability routines
|
||||
$! Unix compatibility routines
|
||||
$!---------------------------------------------
|
||||
$ if severity .ne. 1
|
||||
$ then
|
||||
|
@ -106,7 +106,7 @@ DESCR = curl $(LIBCURL_VERSION_STR) ($(LIBARCH)) - https://curl.haxx.se
|
||||
MTSAFE = YES
|
||||
STACK = 64000
|
||||
SCREEN = $(TARGET) commandline utility
|
||||
# Comment the line below if you dont want to load protected automatically.
|
||||
# Comment the line below if you don't want to load protected automatically.
|
||||
# LDRING = 3
|
||||
|
||||
# Uncomment the next line to enable linking with POSIX semantics.
|
||||
@ -178,7 +178,7 @@ endif
|
||||
CFLAGS += -align 4
|
||||
else
|
||||
# PRELUDE = $(NDK_CLIB)/imports/clibpre.o
|
||||
# to avoid the __init_* / __deinit_* whoes dont use prelude from NDK
|
||||
# to avoid the __init_* / __deinit_* whoes don't use prelude from NDK
|
||||
PRELUDE = "$(MWCW_PATH)/libraries/runtime/prelude.obj"
|
||||
# CFLAGS += -include "$(MWCW_PATH)/headers/nlm_clib_prefix.h"
|
||||
CFLAGS += -align 1
|
||||
@ -201,7 +201,7 @@ else
|
||||
endif
|
||||
else
|
||||
# PRELUDE = $(NDK_CLIB)/imports/clibpre.gcc.o
|
||||
# to avoid the __init_* / __deinit_* whoes dont use prelude from NDK
|
||||
# to avoid the __init_* / __deinit_* whoes don't use prelude from NDK
|
||||
# http://www.gknw.net/development/mk_nlm/gcc_pre.zip
|
||||
PRELUDE = $(NDK_ROOT)/pre/prelude.o
|
||||
CFLAGS += -include $(NDKBASE)/nlmconv/genlm.h
|
||||
|
@ -2708,7 +2708,7 @@ sub datasockf_state {
|
||||
}
|
||||
|
||||
#**********************************************************************
|
||||
# nodataconn_str returns string of efective nodataconn command. Notice
|
||||
# nodataconn_str returns string of effective nodataconn command. Notice
|
||||
# that $nodataconn may be set alone or in addition to a $nodataconnXXX.
|
||||
#
|
||||
sub nodataconn_str {
|
||||
@ -2934,7 +2934,7 @@ while(@ARGV) {
|
||||
}
|
||||
|
||||
#***************************************************************************
|
||||
# Initialize command line option dependant variables
|
||||
# Initialize command line option dependent variables
|
||||
#
|
||||
|
||||
if(!$srcdir) {
|
||||
|
@ -31,7 +31,7 @@
|
||||
* Simply download a HTTPS file!
|
||||
*
|
||||
* This test was added after the HTTPS-using-multi-interface with OpenSSL
|
||||
* regression of 7.19.1 to hopefully prevent this embarassing mistake from
|
||||
* regression of 7.19.1 to hopefully prevent this embarrassing mistake from
|
||||
* appearing again... Unfortunately the bug wasn't triggered by this test,
|
||||
* which presumably is because the connect to a local server is too
|
||||
* fast/different compared to the real/distant servers we saw the bug happen
|
||||
|
@ -71,7 +71,7 @@ struct data {
|
||||
/* Unexpected error.
|
||||
CURLE_NOT_BUILT_IN - means disabled at build
|
||||
CURLE_UNKNOWN_OPTION - means no such option (anymore?)
|
||||
CURLE_SSL_ENGINE_NOTFOUND - set unkown ssl engine
|
||||
CURLE_SSL_ENGINE_NOTFOUND - set unknown ssl engine
|
||||
CURLE_UNSUPPORTED_PROTOCOL - set bad HTTP version
|
||||
CURLE_BAD_FUNCTION_ARGUMENT - unsupported value
|
||||
*/
|
||||
|
@ -69,7 +69,7 @@ sub file {
|
||||
if($str =~ /((libcurl|curl)([^ ]*))\(3\)/i) {
|
||||
my $man = "$1.3";
|
||||
if(!manpresent($man)) {
|
||||
print STDERR "error: $f:$line: refering to non-existing man page $man\n";
|
||||
print STDERR "error: $f:$line: referring to non-existing man page $man\n";
|
||||
$errors++;
|
||||
}
|
||||
if($pre ne "I") {
|
||||
@ -87,7 +87,7 @@ sub file {
|
||||
while($i =~ s/((lib|)curl([^ ]*)) *\"\(3\)(,|) *\" *//i ) {
|
||||
my $man = "$1.3";
|
||||
if(!manpresent($man)) {
|
||||
print STDERR "error: $f:$line: refering to non-existing man page $man\n";
|
||||
print STDERR "error: $f:$line: referring to non-existing man page $man\n";
|
||||
$errors++;
|
||||
}
|
||||
}
|
||||
|
@ -451,7 +451,7 @@ sub build_sys_abs_path {
|
||||
return $path;
|
||||
}
|
||||
elsif(should_use_cygpath()) {
|
||||
# 'cygpath' is avalable - use it.
|
||||
# 'cygpath' is available - use it.
|
||||
|
||||
my $has_final_slash = ($path =~ m{[\\/]$});
|
||||
|
||||
|
@ -20,7 +20,7 @@ function(SETUP_EXECUTABLE TEST_NAME) # ARGN are the files in the test
|
||||
target_link_libraries(${TEST_NAME} ${CURL_LIBS})
|
||||
|
||||
# Test servers simply are standalone programs that do not use libcurl
|
||||
# library. For convinience and to ease portability of these servers,
|
||||
# library. For convenience and to ease portability of these servers,
|
||||
# some source code files from the libcurl subdirectory are also used
|
||||
# to build the servers. In order to achieve proper linkage of these
|
||||
# files on Win32 targets it is necessary to build the test servers
|
||||
|
@ -1050,7 +1050,7 @@ static bool juggle(curl_socket_t *sockfdp,
|
||||
|
||||
Commands:
|
||||
|
||||
DATA - plain pass-thru data
|
||||
DATA - plain pass-through data
|
||||
*/
|
||||
|
||||
if(!read_stdin(buffer, 5))
|
||||
|
@ -1347,7 +1347,7 @@ static curl_socket_t connect_to(const char *ipaddr, unsigned short port)
|
||||
serverfd = socket(socket_domain, SOCK_STREAM, 0);
|
||||
if(CURL_SOCKET_BAD == serverfd) {
|
||||
error = SOCKERRNO;
|
||||
logmsg("Error creating socket for server conection: (%d) %s",
|
||||
logmsg("Error creating socket for server connection: (%d) %s",
|
||||
error, strerror(error));
|
||||
return CURL_SOCKET_BAD;
|
||||
}
|
||||
@ -1358,7 +1358,7 @@ static curl_socket_t connect_to(const char *ipaddr, unsigned short port)
|
||||
curl_socklen_t flag = 1;
|
||||
if(0 != setsockopt(serverfd, IPPROTO_TCP, TCP_NODELAY,
|
||||
(void *)&flag, sizeof(flag)))
|
||||
logmsg("====> TCP_NODELAY for server conection failed");
|
||||
logmsg("====> TCP_NODELAY for server connection failed");
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -1423,7 +1423,7 @@ static curl_socket_t connect_to(const char *ipaddr, unsigned short port)
|
||||
* either end.
|
||||
*
|
||||
* When doing FTP through a CONNECT proxy, we expect that the data connection
|
||||
* will be setup while the first connect is still being kept up. Therefor we
|
||||
* will be setup while the first connect is still being kept up. Therefore we
|
||||
* must accept a new connection and deal with it appropriately.
|
||||
*/
|
||||
|
||||
@ -1567,7 +1567,7 @@ static void http_connect(curl_socket_t *infdp,
|
||||
curl_socklen_t flag = 1;
|
||||
if(0 != setsockopt(datafd, IPPROTO_TCP, TCP_NODELAY,
|
||||
(void *)&flag, sizeof(flag)))
|
||||
logmsg("====> TCP_NODELAY for client DATA conection failed");
|
||||
logmsg("====> TCP_NODELAY for client DATA connection failed");
|
||||
}
|
||||
#endif
|
||||
req2.pipelining = FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user