platform/upstream/curl.git
20 years agoMake the 'areschannel' get created in the curl_easy_init() and re-use that
Daniel Stenberg [Mon, 16 Feb 2004 15:24:22 +0000 (15:24 +0000)]
Make the 'areschannel' get created in the curl_easy_init() and re-use that
same channel during the whole curl handle's life until curl_easy_cleanup().

20 years agoupdates
Daniel Stenberg [Mon, 16 Feb 2004 13:36:08 +0000 (13:36 +0000)]
updates

20 years agoverbose-fix, socks5-fix, dnscache-fix, configure-winmmlib-fix
Daniel Stenberg [Mon, 16 Feb 2004 13:33:41 +0000 (13:33 +0000)]
verbose-fix, socks5-fix, dnscache-fix, configure-winmmlib-fix

20 years agoFix verbosconnect() when ipv6-enabled to not assume that conn->serv_addr
Daniel Stenberg [Mon, 16 Feb 2004 13:14:55 +0000 (13:14 +0000)]
Fix verbosconnect() when ipv6-enabled to not assume that conn->serv_addr
is a valid pointer, but instead always depend on the passed-in dns pointer.
This happens to be NULL when the connection is re-used...

20 years agoremoved usage of a silly macro instead of the actual functions memcpy
Daniel Stenberg [Mon, 16 Feb 2004 09:56:18 +0000 (09:56 +0000)]
removed usage of a silly macro instead of the actual functions memcpy
and memset

20 years agoJeff Lawson pointed out that we need to check for a '5' in the version field
Daniel Stenberg [Mon, 16 Feb 2004 07:33:30 +0000 (07:33 +0000)]
Jeff Lawson pointed out that we need to check for a '5' in the version field
to properly work with SOCKS5 proxies. I also included some ascii art describing
the SOCKS5 response, as RFC1928 describes. Jeff provided details in bug
report #741841 and here: http://curl.haxx.se/mail/lib-2004-02/0181.html

20 years agoAndrés García added a check for lwinmm for Mingw/sys
Daniel Stenberg [Sun, 15 Feb 2004 22:34:58 +0000 (22:34 +0000)]
Andrés García added a check for lwinmm for Mingw/sys

20 years agoMark the dns entry 'inuse' properly even when used from the cache. This
Daniel Stenberg [Sun, 15 Feb 2004 16:57:53 +0000 (16:57 +0000)]
Mark the dns entry 'inuse' properly even when used from the cache. This
seems to correct some host cache screw-ups I could reproduce.

20 years agoanother case which should use CURLcode and not int
Daniel Stenberg [Sun, 15 Feb 2004 13:58:57 +0000 (13:58 +0000)]
another case which should use CURLcode and not int

20 years agoUse the was_iface variable when binding a socket locally, even if no
Daniel Stenberg [Sun, 15 Feb 2004 13:55:24 +0000 (13:55 +0000)]
Use the was_iface variable when binding a socket locally, even if no
SO_BINDTODEVICE is present, to prevent compiler warnings about the variable

20 years agobind interface and large file fixes
Daniel Stenberg [Sun, 15 Feb 2004 13:51:07 +0000 (13:51 +0000)]
bind interface and large file fixes

20 years agorecent fixes
Daniel Stenberg [Sun, 15 Feb 2004 13:50:04 +0000 (13:50 +0000)]
recent fixes

20 years ago(void) functions we don't check the return code for
Daniel Stenberg [Sun, 15 Feb 2004 13:48:50 +0000 (13:48 +0000)]
(void) functions we don't check the return code for

20 years agoCURLcode/int cleanup to reduce IRIX warnings
Daniel Stenberg [Sun, 15 Feb 2004 13:48:28 +0000 (13:48 +0000)]
CURLcode/int cleanup to reduce IRIX warnings
Removed some dates/names in the comments.

20 years agospell!
Daniel Stenberg [Sun, 15 Feb 2004 13:47:32 +0000 (13:47 +0000)]
spell!

20 years agodon't assume we can use gcc 2.96+ options
Daniel Stenberg [Sun, 15 Feb 2004 12:30:40 +0000 (12:30 +0000)]
don't assume we can use gcc 2.96+ options

20 years agoin the socks code, make sure we receive Curl_read results in ints and
Daniel Stenberg [Fri, 13 Feb 2004 12:42:37 +0000 (12:42 +0000)]
in the socks code, make sure we receive Curl_read results in ints and
Curl_write in CURLcode, to keep the picky compilers happy

20 years agoremoved usage of unset variables (by a function that does nothing!)
Daniel Stenberg [Fri, 13 Feb 2004 12:28:27 +0000 (12:28 +0000)]
removed usage of unset variables (by a function that does nothing!)

20 years agoreturn an int
Daniel Stenberg [Fri, 13 Feb 2004 12:18:34 +0000 (12:18 +0000)]
return an int

20 years agoreturn an int, not a CURLcode
Daniel Stenberg [Fri, 13 Feb 2004 12:17:42 +0000 (12:17 +0000)]
return an int, not a CURLcode

20 years agouse CURLcode, not int, prevents picky compilers to warn
Daniel Stenberg [Fri, 13 Feb 2004 12:16:24 +0000 (12:16 +0000)]
use CURLcode, not int, prevents picky compilers to warn

20 years agothe now and start variables were never really used
Daniel Stenberg [Fri, 13 Feb 2004 12:13:30 +0000 (12:13 +0000)]
the now and start variables were never really used

20 years agoBen Greear's SO_BINDTODEVICE patch that binds to a network interface "even
Daniel Stenberg [Fri, 13 Feb 2004 09:50:23 +0000 (09:50 +0000)]
Ben Greear's SO_BINDTODEVICE patch that binds to a network interface "even
more" when the previous approach. Known to work on Linux, possibly on other
platforms as well.

20 years agoTor Arntsen made the ares build warnings etc get included as well
Daniel Stenberg [Fri, 13 Feb 2004 07:15:36 +0000 (07:15 +0000)]
Tor Arntsen made the ares build warnings etc get included as well

20 years agoGreg Hewgill found out 'contentlength' wasn't big enough to hold a large file!
Daniel Stenberg [Fri, 13 Feb 2004 07:12:40 +0000 (07:12 +0000)]
Greg Hewgill found out 'contentlength' wasn't big enough to hold a large file!

20 years agomake the path const
Daniel Stenberg [Fri, 13 Feb 2004 07:05:15 +0000 (07:05 +0000)]
make the path const

20 years agoI made the same fix here, that Tor already did in the ftp.c code. To make
Daniel Stenberg [Fri, 13 Feb 2004 07:03:03 +0000 (07:03 +0000)]
I made the same fix here, that Tor already did in the ftp.c code. To make
sure this doesn't get weird on 64bit archs.

20 years agoTor Arntsen's fix for the bad (64bit wise) typecast when using gmtime()
Daniel Stenberg [Fri, 13 Feb 2004 06:59:49 +0000 (06:59 +0000)]
Tor Arntsen's fix for the bad (64bit wise) typecast when using gmtime()

20 years agoMake hostcache_fixoffset() take a long for offset, to fully work with 64bit
Daniel Stenberg [Thu, 12 Feb 2004 16:02:55 +0000 (16:02 +0000)]
Make hostcache_fixoffset() take a long for offset, to fully work with 64bit
archs, also no longer typecast pointers to ints as that is a nono on 64bit
systems.

20 years agoup to date with recent fixes
Daniel Stenberg [Thu, 12 Feb 2004 15:50:38 +0000 (15:50 +0000)]
up to date with recent fixes

20 years agoIf no nroff tool is found, or if no command line switch to nroff that converts
Daniel Stenberg [Thu, 12 Feb 2004 15:05:38 +0000 (15:05 +0000)]
If no nroff tool is found, or if no command line switch to nroff that converts
a man page to text is found, we disable the built-in manual stuff to still
be able to build.

20 years agosupport configure --disable-manual
Daniel Stenberg [Thu, 12 Feb 2004 14:46:12 +0000 (14:46 +0000)]
support configure --disable-manual

20 years agoadded --enable/disable-manual
Daniel Stenberg [Thu, 12 Feb 2004 14:45:50 +0000 (14:45 +0000)]
added --enable/disable-manual

20 years agono need to run make test in the data dir anymore
Daniel Stenberg [Thu, 12 Feb 2004 14:43:13 +0000 (14:43 +0000)]
no need to run make test in the data dir anymore

20 years agoprovide a source path to the servers to make them find the tests when run
Daniel Stenberg [Thu, 12 Feb 2004 14:40:08 +0000 (14:40 +0000)]
provide a source path to the servers to make them find the tests when run
outside the source dir, not needing any symlinks

20 years agostop doing the weirdo symlinks
Daniel Stenberg [Thu, 12 Feb 2004 14:39:28 +0000 (14:39 +0000)]
stop doing the weirdo symlinks

20 years agoremoved the subchar variable, it was only set and never used
Daniel Stenberg [Thu, 12 Feb 2004 09:53:03 +0000 (09:53 +0000)]
removed the subchar variable, it was only set and never used

20 years agoremoved the ldaptext variable, it was only set and never used
Daniel Stenberg [Thu, 12 Feb 2004 09:51:43 +0000 (09:51 +0000)]
removed the ldaptext variable, it was only set and never used

20 years agoremoved the nth variable, it was only set and never used anyway
Daniel Stenberg [Thu, 12 Feb 2004 09:50:44 +0000 (09:50 +0000)]
removed the nth variable, it was only set and never used anyway

20 years agoNo longer receive the return code in ConnectionKillOne() that wasn't dealt
Daniel Stenberg [Thu, 12 Feb 2004 09:48:27 +0000 (09:48 +0000)]
No longer receive the return code in ConnectionKillOne() that wasn't dealt
with anyway and thus caused picky compiler to warn.

20 years agoAndrés García's additional fix to make the OpenSSL stuff work for msys/mingw
Daniel Stenberg [Wed, 11 Feb 2004 21:14:54 +0000 (21:14 +0000)]
Andrés García's additional fix to make the OpenSSL stuff work for msys/mingw

20 years ago#if-check for SIGALRM before assuming it is present
Daniel Stenberg [Wed, 11 Feb 2004 21:11:08 +0000 (21:11 +0000)]
#if-check for SIGALRM before assuming it is present

20 years agouse libtoolize --force to overwrite existing (older) files
Daniel Stenberg [Wed, 11 Feb 2004 13:08:38 +0000 (13:08 +0000)]
use libtoolize --force to overwrite existing (older) files

20 years agoinstall ares_version.h as well
Daniel Stenberg [Wed, 11 Feb 2004 12:59:16 +0000 (12:59 +0000)]
install ares_version.h as well

20 years agoDirk Manske's fix to install ares_version.h as well
Daniel Stenberg [Wed, 11 Feb 2004 12:58:43 +0000 (12:58 +0000)]
Dirk Manske's fix to install ares_version.h as well

20 years agomondays are busy days catching up with the patches from the weekend! ;-)
Daniel Stenberg [Mon, 9 Feb 2004 16:16:05 +0000 (16:16 +0000)]
mondays are busy days catching up with the patches from the weekend! ;-)

20 years agoDominick Meglio's update
Daniel Stenberg [Mon, 9 Feb 2004 13:51:52 +0000 (13:51 +0000)]
Dominick Meglio's update

20 years agorecent updates
Daniel Stenberg [Mon, 9 Feb 2004 13:41:24 +0000 (13:41 +0000)]
recent updates

20 years agoModified the default HTTP Accept: header to only be Accept: */*
Daniel Stenberg [Mon, 9 Feb 2004 12:46:41 +0000 (12:46 +0000)]
Modified the default HTTP Accept: header to only be Accept: */*

20 years agoRemoved, this was only used to work out what went wrong with test 91, and
Daniel Stenberg [Mon, 9 Feb 2004 11:41:07 +0000 (11:41 +0000)]
Removed, this was only used to work out what went wrong with test 91, and
we seem to have nailed that one now!

20 years agoOops. I broke the flow with the previous commit.
Daniel Stenberg [Mon, 9 Feb 2004 11:40:00 +0000 (11:40 +0000)]
Oops. I broke the flow with the previous commit.

20 years agoP R Schaffner updated this to work for 7.11.0
Daniel Stenberg [Mon, 9 Feb 2004 10:24:55 +0000 (10:24 +0000)]
P R Schaffner updated this to work for 7.11.0

20 years agoDominick Meglio's added share interface documentation
Daniel Stenberg [Mon, 9 Feb 2004 09:07:26 +0000 (09:07 +0000)]
Dominick Meglio's added share interface documentation

20 years agoremoved the state file renaming I accidentally left there
Daniel Stenberg [Mon, 9 Feb 2004 08:55:33 +0000 (08:55 +0000)]
removed the state file renaming I accidentally left there

20 years agosome annoying compilers warn about "(void)foo;" lines so we avoid them
Daniel Stenberg [Mon, 9 Feb 2004 08:34:19 +0000 (08:34 +0000)]
some annoying compilers warn about "(void)foo;" lines so we avoid them

20 years agoMake param2text() take an int argument, as that is what's being passed in.
Daniel Stenberg [Mon, 9 Feb 2004 08:31:52 +0000 (08:31 +0000)]
Make param2text() take an int argument, as that is what's being passed in.
This is made to prevent compiler warnings.

20 years agouse VAR_NONE instead of 0 in the table to prevent compiler warning
Daniel Stenberg [Mon, 9 Feb 2004 08:29:09 +0000 (08:29 +0000)]
use VAR_NONE instead of 0 in the table to prevent compiler warning

20 years agoreturn 'res' to better discover test failures and to stop compiler warnings
Daniel Stenberg [Mon, 9 Feb 2004 08:28:00 +0000 (08:28 +0000)]
return 'res' to better discover test failures and to stop compiler warnings
about it never being used

20 years agoUninitialized variable set.
Daniel Stenberg [Mon, 9 Feb 2004 08:25:48 +0000 (08:25 +0000)]
Uninitialized variable set.

20 years agoTor Arntsen's patch for working around a notorious bug in the AIX5
Daniel Stenberg [Mon, 9 Feb 2004 07:52:36 +0000 (07:52 +0000)]
Tor Arntsen's patch for working around a notorious bug in the AIX5
getaddrinfo() implementation.

20 years agoKen Rastatter's fixes to improve portability of this example:
Daniel Stenberg [Mon, 9 Feb 2004 07:12:33 +0000 (07:12 +0000)]
Ken Rastatter's fixes to improve portability of this example:

These minor changes remove portability issues with the this example and allow
it to run on Win32. Specifically:

* The use of pthread_create() has been replaced by g_thread_create(). This
removes the dependency on the pthreads library. Since this is an example using
GTK+, g_thread_create() is available as it is a part of glibc.

* The CURLOPT_FILE option is now referred to by its "newer name"
CURLOPT_WRITEDATA.

* The use of CURLOPT_WRITEFUNCTION has been added.  As described in the docs,
this avoids the crashes when using a DLL under Win32.

* The output file has been renamed from "/tmp/test.curl" to "test.curl". It's
unlikely that there is a /tmp when in Win32 and other examples in libcurl
write their output files to the working directory.

20 years agomingw configure fix, host: fix, compiler warnings in ldap.c
Daniel Stenberg [Fri, 6 Feb 2004 14:27:08 +0000 (14:27 +0000)]
mingw configure fix, host: fix, compiler warnings in ldap.c

20 years agoupdated with recent fixes
Daniel Stenberg [Fri, 6 Feb 2004 14:23:10 +0000 (14:23 +0000)]
updated with recent fixes

20 years agoThe Curl_strtoll() issue
Daniel Stenberg [Fri, 6 Feb 2004 14:17:30 +0000 (14:17 +0000)]
The Curl_strtoll() issue

20 years agoupdated
Daniel Stenberg [Fri, 6 Feb 2004 13:42:49 +0000 (13:42 +0000)]
updated

20 years agoRewrote the gethostbyname() check after Andrés García's provided patch
Daniel Stenberg [Fri, 6 Feb 2004 12:13:20 +0000 (12:13 +0000)]
Rewrote the gethostbyname() check after Andrés García's provided patch
for finding it using mingw on windows.
I also made the script skip the search for gethostbyname_r and gethostbyaddr_r
when ipv6 is enabled.

20 years agoAdded documentation of a few command line options that were still undocumented
Daniel Stenberg [Fri, 6 Feb 2004 10:17:13 +0000 (10:17 +0000)]
Added documentation of a few command line options that were still undocumented
here.

20 years agoA custom Host: header is only considered if the request is not made by
Daniel Stenberg [Fri, 6 Feb 2004 08:11:58 +0000 (08:11 +0000)]
A custom Host: header is only considered if the request is not made by
following a location. After discussions with Tim Baker.

20 years agoThe MIPSPro compiler complains on constructs such as "(void)foo;" so
Daniel Stenberg [Fri, 6 Feb 2004 07:59:16 +0000 (07:59 +0000)]
The MIPSPro compiler complains on constructs such as "(void)foo;" so
we avoid it where possible.

20 years agoMake sure DynaGetFunction() returns a function pointer, not a data pointer.
Daniel Stenberg [Fri, 6 Feb 2004 07:28:49 +0000 (07:28 +0000)]
Make sure DynaGetFunction() returns a function pointer, not a data pointer.
The standards don't actually allow typecasts between data and functions so
some picky compilers warn about this.

20 years agoRemove the attempt to detect if we already tested the same source setup.
Daniel Stenberg [Fri, 6 Feb 2004 07:15:27 +0000 (07:15 +0000)]
Remove the attempt to detect if we already tested the same source setup.
We really don't care, and so many other things could've changed to make the
new test interesting anyway.

20 years agonumerous things went in today
Daniel Stenberg [Thu, 5 Feb 2004 21:52:53 +0000 (21:52 +0000)]
numerous things went in today

20 years agoadded the missing stdin section
Daniel Stenberg [Thu, 5 Feb 2004 21:51:45 +0000 (21:51 +0000)]
added the missing stdin section

20 years agoAn attempt to only set both libz-related defines at the same time. We need
Daniel Stenberg [Thu, 5 Feb 2004 21:40:05 +0000 (21:40 +0000)]
An attempt to only set both libz-related defines at the same time. We need
both the lib and the header present for both defines to be set. If only one
of the files is found, we issue a warning and set no define.

20 years agoAndrés García's updates
Daniel Stenberg [Thu, 5 Feb 2004 21:03:53 +0000 (21:03 +0000)]
Andrés García's updates

20 years agoif an empty 'transfer-encoding:' header is provided, we switch off the
Daniel Stenberg [Thu, 5 Feb 2004 15:50:16 +0000 (15:50 +0000)]
if an empty 'transfer-encoding:' header is provided, we switch off the
chunky coding of uploads

20 years agoMade a test that sends data on stdin to PUT, with a given length and
Daniel Stenberg [Thu, 5 Feb 2004 15:21:46 +0000 (15:21 +0000)]
Made a test that sends data on stdin to PUT, with a given length and
chunked transfer-encoding disabled. Fixed to work after Len Krause's
bug report.

20 years agoGisle Vanem fixed a windows compiler warning
Daniel Stenberg [Thu, 5 Feb 2004 13:25:14 +0000 (13:25 +0000)]
Gisle Vanem fixed a windows compiler warning

20 years agochanged the test() function to return type int
Daniel Stenberg [Thu, 5 Feb 2004 12:34:17 +0000 (12:34 +0000)]
changed the test() function to return type int

20 years agoinclude process.h to get the _getpid() proto
Daniel Stenberg [Thu, 5 Feb 2004 12:19:13 +0000 (12:19 +0000)]
include process.h to get the _getpid() proto

20 years agowhen using --enable-debug and gcc, provide the -Wno-format-nonliteral option
Daniel Stenberg [Thu, 5 Feb 2004 10:38:32 +0000 (10:38 +0000)]
when using --enable-debug and gcc, provide the -Wno-format-nonliteral option
to prevent the warning in mprintf.c:

(currently line 930) "format not a string literal, argument types not checked"

20 years agooptions we get as longs need to be typecasted when assigned to prevent
Daniel Stenberg [Thu, 5 Feb 2004 09:38:56 +0000 (09:38 +0000)]
options we get as longs need to be typecasted when assigned to prevent
picky compiler warnings

20 years agofix return type to silence compiler warnings
Daniel Stenberg [Thu, 5 Feb 2004 09:38:10 +0000 (09:38 +0000)]
fix return type to silence compiler warnings

20 years agoprevent warning from that picky MIPSpro compiler
Daniel Stenberg [Thu, 5 Feb 2004 09:37:46 +0000 (09:37 +0000)]
prevent warning from that picky MIPSpro compiler

20 years agocompiler warning fix, compare struct pointers of the same type
Daniel Stenberg [Thu, 5 Feb 2004 09:37:04 +0000 (09:37 +0000)]
compiler warning fix, compare struct pointers of the same type

20 years agouse the timeout options when waiting for the server to connect when using
Daniel Stenberg [Thu, 5 Feb 2004 09:26:01 +0000 (09:26 +0000)]
use the timeout options when waiting for the server to connect when using
PORT
Provide better error messages to allow debugging if one if the ipv6-related
name functions fail in the ftp_use_port() function. This might help us
diagnose the problems on AIX. Also make sure getaddrinfo() uses NULL and
not "0" for the service argument.

20 years agohide the pack_hostent proto if ipv6 is enabled, as figured out by Tor Arntsen
Daniel Stenberg [Thu, 5 Feb 2004 08:34:31 +0000 (08:34 +0000)]
hide the pack_hostent proto if ipv6 is enabled, as figured out by Tor Arntsen

20 years agoFix the socklen_t type too. Needed only when built with memory debugging
Daniel Stenberg [Thu, 5 Feb 2004 08:27:47 +0000 (08:27 +0000)]
Fix the socklen_t type too. Needed only when built with memory debugging
as then we include the memdebug.h header from the lib dir, and it then
requires this type... (fails on IRIX 6.5 without this)

20 years agofixed "comparison between signed and unsigned" complaints
Daniel Stenberg [Wed, 4 Feb 2004 10:24:23 +0000 (10:24 +0000)]
fixed "comparison between signed and unsigned" complaints

20 years agodon't use 'sin' as variable name as the picky compiler warnings complain
Daniel Stenberg [Wed, 4 Feb 2004 10:23:15 +0000 (10:23 +0000)]
don't use 'sin' as variable name as the picky compiler warnings complain
about it shadowing the function sin()

20 years agofixing
Daniel Stenberg [Wed, 4 Feb 2004 09:16:05 +0000 (09:16 +0000)]
fixing

20 years agoprevent a compiler warning about a macro definition
Daniel Stenberg [Wed, 4 Feb 2004 08:04:28 +0000 (08:04 +0000)]
prevent a compiler warning about a macro definition

20 years agoprevent the windows version to use global symbol names
Daniel Stenberg [Wed, 4 Feb 2004 08:00:25 +0000 (08:00 +0000)]
prevent the windows version to use global symbol names
added prototypes for the strcasecmp() functions

20 years agowe use the more aggressive compiler warnings
Daniel Stenberg [Wed, 4 Feb 2004 07:54:42 +0000 (07:54 +0000)]
we use the more aggressive compiler warnings

20 years agomade more pointers unsigned, as they were mostly used passed in to functions
Daniel Stenberg [Wed, 4 Feb 2004 07:52:13 +0000 (07:52 +0000)]
made more pointers unsigned, as they were mostly used passed in to functions
that assume them to be unsigned. Stops compiler warnings.

20 years agotypecast comparision between signed and unsigned
Daniel Stenberg [Wed, 4 Feb 2004 07:51:30 +0000 (07:51 +0000)]
typecast comparision between signed and unsigned

20 years agotry_config() takes a second parameter as const, to prevent picky compiler
Daniel Stenberg [Wed, 4 Feb 2004 07:50:51 +0000 (07:50 +0000)]
try_config() takes a second parameter as const, to prevent picky compiler
warnings

20 years agotakes a void *, not a char * anymore
Daniel Stenberg [Wed, 4 Feb 2004 07:50:18 +0000 (07:50 +0000)]
takes a void *, not a char * anymore

20 years agoares_free_string() now takes a void * instead
Daniel Stenberg [Wed, 4 Feb 2004 07:49:33 +0000 (07:49 +0000)]
ares_free_string() now takes a void * instead

20 years agodon't compare signed and unsigned
Daniel Stenberg [Wed, 4 Feb 2004 07:48:46 +0000 (07:48 +0000)]
don't compare signed and unsigned