platform/upstream/curl.git
20 years agotoday's changes
Daniel Stenberg [Sat, 16 Oct 2004 14:07:31 +0000 (14:07 +0000)]
today's changes

20 years agoAlexander Krasnostavsky made the CURLOPT_FTP_CREATE_MISSING_DIRS option work
Daniel Stenberg [Sat, 16 Oct 2004 14:06:54 +0000 (14:06 +0000)]
Alexander Krasnostavsky made the CURLOPT_FTP_CREATE_MISSING_DIRS option work
fine even for third party transfers.

20 years agolibcurl leaked memory for cookies with the "max-age" field set.
Daniel Stenberg [Sat, 16 Oct 2004 13:54:40 +0000 (13:54 +0000)]
libcurl leaked memory for cookies with the "max-age" field set.

20 years agoChanges for issue 50
Gisle Vanem [Sat, 16 Oct 2004 13:20:33 +0000 (13:20 +0000)]
Changes for issue 50

20 years agoOpen "debugit" in binary mode ("rb").
Gisle Vanem [Sat, 16 Oct 2004 13:17:15 +0000 (13:17 +0000)]
Open "debugit" in binary mode ("rb").

20 years agoAdded Traian Nicolescu's patches for threaded resolver on
Gisle Vanem [Sat, 16 Oct 2004 12:59:05 +0000 (12:59 +0000)]
Added Traian Nicolescu's patches for threaded resolver on
Windows. Plugged some potential handle and memory leaks.

Refs.
  http://curl.haxx.se/mail/lib-2004-10/0134.html
  http://curl.haxx.se/mail/lib-2004-10/0157.html

20 years agoEric Vergnaud pointed out that libcurl didn't treat ?-letters in the user name
Daniel Stenberg [Thu, 14 Oct 2004 13:44:54 +0000 (13:44 +0000)]
Eric Vergnaud pointed out that libcurl didn't treat ?-letters in the user name
and password fields properly in URLs, like
ftp://us?er:pass?word@site.com/. Added test 191 to verify the fix.

20 years agouse quotes to make gdb usage on this easier
Daniel Stenberg [Thu, 14 Oct 2004 13:44:16 +0000 (13:44 +0000)]
use quotes to make gdb usage on this easier

20 years agolet's fix this too
Daniel Stenberg [Thu, 14 Oct 2004 13:34:42 +0000 (13:34 +0000)]
let's fix this too

20 years agoSet errno = ENOMEM on faild countcheck().
Gisle Vanem [Wed, 13 Oct 2004 19:11:46 +0000 (19:11 +0000)]
Set errno = ENOMEM on faild countcheck().

20 years ago.NET binding
Daniel Stenberg [Wed, 13 Oct 2004 08:46:36 +0000 (08:46 +0000)]
.NET binding

20 years agocorrection
Daniel Stenberg [Tue, 12 Oct 2004 18:20:36 +0000 (18:20 +0000)]
correction

20 years ago#include "strerror.h" to get the strerror proto
Daniel Stenberg [Tue, 12 Oct 2004 12:49:38 +0000 (12:49 +0000)]
#include "strerror.h" to get the strerror proto

20 years agorecent fixes
Daniel Stenberg [Tue, 12 Oct 2004 12:47:38 +0000 (12:47 +0000)]
recent fixes

20 years agoone item fixed, one added for 7.12.2 and two more for 7.12.3
Daniel Stenberg [Tue, 12 Oct 2004 12:47:31 +0000 (12:47 +0000)]
one item fixed, one added for 7.12.2 and two more for 7.12.3

20 years agoadd proper error message when send() fails
Daniel Stenberg [Tue, 12 Oct 2004 07:24:19 +0000 (07:24 +0000)]
add proper error message when send() fails

20 years agoremoved trailing whitespace
Daniel Stenberg [Mon, 11 Oct 2004 17:26:24 +0000 (17:26 +0000)]
removed trailing whitespace

20 years agoSO_NOSIGPIPE
Daniel Stenberg [Mon, 11 Oct 2004 17:23:41 +0000 (17:23 +0000)]
SO_NOSIGPIPE

20 years agoanother lame attempt to avoid the "warning: will never be executed" warning
Daniel Stenberg [Sun, 10 Oct 2004 14:36:22 +0000 (14:36 +0000)]
another lame attempt to avoid the "warning: will never be executed" warning
by gcc 3.4

20 years agoMSVC uses 'i64' suffix for 64-bit sizes.
Gisle Vanem [Sun, 10 Oct 2004 14:08:05 +0000 (14:08 +0000)]
MSVC uses 'i64' suffix for 64-bit sizes.

20 years agoattempt to make the configure output appear in the build log when it runs
Daniel Stenberg [Sun, 10 Oct 2004 07:51:25 +0000 (07:51 +0000)]
attempt to make the configure output appear in the build log when it runs
on my solaris 2.7 box too (currently unknown perl version)

20 years agoset the SIZEOF_LONG define to get the new lib/strtoofft.h fine
Daniel Stenberg [Sun, 10 Oct 2004 07:45:41 +0000 (07:45 +0000)]
set the SIZEOF_LONG define to get the new lib/strtoofft.h fine

20 years agoIf long is 8 bytes we can use strtol() to get 64 bit numbers and won't need
Daniel Stenberg [Sun, 10 Oct 2004 03:39:59 +0000 (03:39 +0000)]
If long is 8 bytes we can use strtol() to get 64 bit numbers and won't need
our strtoll() replacement function.

20 years agoPrevent a longjmp warning by moving the rc assign within Curl_resolv().
Daniel Stenberg [Sun, 10 Oct 2004 03:32:01 +0000 (03:32 +0000)]
Prevent a longjmp warning by moving the rc assign within Curl_resolv().
Andy Cedilnik reported. Warning on HP-UX?

20 years agoUse LL suffix for long long constants if the compiler supports it, to prevent
Daniel Stenberg [Sun, 10 Oct 2004 03:28:51 +0000 (03:28 +0000)]
Use LL suffix for long long constants if the compiler supports it, to prevent
warnings.

20 years agoIf long long is supported, check if [num]LL is supported for numerical
Daniel Stenberg [Sun, 10 Oct 2004 03:22:45 +0000 (03:22 +0000)]
If long long is supported, check if [num]LL is supported for numerical
constants.

20 years ago--enable-ares on AIX has problem
Daniel Stenberg [Fri, 8 Oct 2004 12:59:36 +0000 (12:59 +0000)]
--enable-ares on AIX has problem

20 years agoUse 'struct lifreq' and SIOCGLIFADDR
Daniel Stenberg [Fri, 8 Oct 2004 09:57:33 +0000 (09:57 +0000)]
Use 'struct lifreq' and SIOCGLIFADDR

20 years agokilled trailing whitespace
Daniel Stenberg [Fri, 8 Oct 2004 09:39:37 +0000 (09:39 +0000)]
killed trailing whitespace

20 years agoif basename was found, check for a prototype and if none was found, provide
Daniel Stenberg [Fri, 8 Oct 2004 08:18:08 +0000 (08:18 +0000)]
if basename was found, check for a prototype and if none was found, provide
our own in the formdata.c file to prevent warnings on systems without it

20 years agoprevent warning with comparison between signed and unsigned
Daniel Stenberg [Fri, 8 Oct 2004 08:16:02 +0000 (08:16 +0000)]
prevent warning with comparison between signed and unsigned

20 years agouse curlx_strnequal() from the private lib sources instead of strncasecmp()
Daniel Stenberg [Thu, 7 Oct 2004 22:57:24 +0000 (22:57 +0000)]
use curlx_strnequal() from the private lib sources instead of strncasecmp()
for maximum portability

20 years agouse curl_strnequal(), not strncasecmp()
Daniel Stenberg [Thu, 7 Oct 2004 22:56:24 +0000 (22:56 +0000)]
use curl_strnequal(), not strncasecmp()

20 years agoGisle's new fix, the old file:// leak
Daniel Stenberg [Thu, 7 Oct 2004 12:17:53 +0000 (12:17 +0000)]
Gisle's new fix, the old file:// leak

20 years agouse tld_strerror() only if previously detected, since otherwise we can't
Daniel Stenberg [Thu, 7 Oct 2004 07:41:44 +0000 (07:41 +0000)]
use tld_strerror() only if previously detected, since otherwise we can't
work with libidn < 0.5.6

20 years agocheck for tld_strerror
Daniel Stenberg [Thu, 7 Oct 2004 07:41:14 +0000 (07:41 +0000)]
check for tld_strerror

20 years agoAdded tld_check_name().
Gisle Vanem [Wed, 6 Oct 2004 19:00:37 +0000 (19:00 +0000)]
Added tld_check_name().

20 years agoFixed tld_check_name(). idna_to_unicode_lzlz() should never fail,
Gisle Vanem [Wed, 6 Oct 2004 18:55:58 +0000 (18:55 +0000)]
Fixed tld_check_name(). idna_to_unicode_lzlz() should never fail,
but return FALSE if 'uc_name == NULL' just in case.

20 years agoUSE_LIBIDN: Added Top-level-domain (TLD) check for host->name.
Gisle Vanem [Wed, 6 Oct 2004 18:40:10 +0000 (18:40 +0000)]
USE_LIBIDN: Added Top-level-domain (TLD) check for host->name.
Only print a warning if check fails.

20 years agotest resume and redirect
Daniel Stenberg [Wed, 6 Oct 2004 14:58:07 +0000 (14:58 +0000)]
test resume and redirect

20 years agoChih-Chung Chang reported that if you use CURLOPT_RESUME_FROM and enabled
Daniel Stenberg [Wed, 6 Oct 2004 13:37:12 +0000 (13:37 +0000)]
Chih-Chung Chang reported that if you use CURLOPT_RESUME_FROM and enabled
CURLOPT_FOLLOWLOCATION, libcurl reported error if a redirect happened even if
the new URL would provide the resumed file. Test case 188 added to verify the
fix (together with existing test 99).

20 years ago*** empty log message ***
Gisle Vanem [Wed, 6 Oct 2004 13:24:08 +0000 (13:24 +0000)]
*** empty log message ***

20 years agoupdates of today
Daniel Stenberg [Wed, 6 Oct 2004 09:04:20 +0000 (09:04 +0000)]
updates of today

20 years agoavoid warnings on systems with this member set const
Daniel Stenberg [Wed, 6 Oct 2004 07:52:20 +0000 (07:52 +0000)]
avoid warnings on systems with this member set const

20 years agoremoved tabs and trailing whitespace from source
Daniel Stenberg [Wed, 6 Oct 2004 07:50:18 +0000 (07:50 +0000)]
removed tabs and trailing whitespace from source

20 years agoDan Fandrich fix for hosts that need both -lnsl and -lsocket
Daniel Stenberg [Wed, 6 Oct 2004 07:33:03 +0000 (07:33 +0000)]
Dan Fandrich fix for hosts that need both -lnsl and -lsocket

20 years agountabify
Daniel Stenberg [Wed, 6 Oct 2004 06:58:42 +0000 (06:58 +0000)]
untabify

20 years agodjgpp has basename()
Gisle Vanem [Tue, 5 Oct 2004 13:48:50 +0000 (13:48 +0000)]
djgpp has basename()

20 years agominor edit to re-use a variable and to hopefully avoid a (moot) warning
Daniel Stenberg [Tue, 5 Oct 2004 11:03:59 +0000 (11:03 +0000)]
minor edit to re-use a variable and to hopefully avoid a (moot) warning
about code that won't be reached

20 years agorecent fixes
Daniel Stenberg [Tue, 5 Oct 2004 10:52:51 +0000 (10:52 +0000)]
recent fixes

20 years agomake the given path to --with-libidn override any other installation
Daniel Stenberg [Tue, 5 Oct 2004 08:45:13 +0000 (08:45 +0000)]
make the given path to --with-libidn override any other installation

20 years agoavoid warning for unused variable
Daniel Stenberg [Tue, 5 Oct 2004 08:42:56 +0000 (08:42 +0000)]
avoid warning for unused variable

20 years agouse idna_strerror() if it is available (only in libidn 0.5.6 or later)
Daniel Stenberg [Tue, 5 Oct 2004 08:40:26 +0000 (08:40 +0000)]
use idna_strerror() if it is available (only in libidn 0.5.6 or later)

20 years agoOnly include libgen.h if we have a basename as well.
Daniel Stenberg [Tue, 5 Oct 2004 06:55:09 +0000 (06:55 +0000)]
Only include libgen.h if we have a basename as well.

Mainly meant to deal with the IRIX case which seems to requrie a "-lgen" lib
to find the basename function and thus without the gen lib, it finds the
header but not the function and our replacement function has a prototype
that doesn't match the IRIX one.

A different approach would be to make configure detect and use -lgen for the
systems that require it.

20 years agolet our basename() be static
Daniel Stenberg [Tue, 5 Oct 2004 06:49:09 +0000 (06:49 +0000)]
let our basename() be static

20 years agoname mix fix
Daniel Stenberg [Mon, 4 Oct 2004 12:54:58 +0000 (12:54 +0000)]
name mix fix

20 years agoclosing in on release
Daniel Stenberg [Mon, 4 Oct 2004 10:37:30 +0000 (10:37 +0000)]
closing in on release

20 years agoMade the dns entry remain locked while a connection to the host remains to
Daniel Stenberg [Mon, 4 Oct 2004 10:36:51 +0000 (10:36 +0000)]
Made the dns entry remain locked while a connection to the host remains to
allow verbose output during this period. Bertrand Demiddelaer reported and
helped fixing.

20 years agoset async.done to TRUE last in the addrinfo callback to prevent the risk that
Daniel Stenberg [Sun, 3 Oct 2004 21:32:24 +0000 (21:32 +0000)]
set async.done to TRUE last in the addrinfo callback to prevent the risk that
the multi-threaded resolver does wrong

20 years agoReplaced the use of isspace() with our own version instead since we have most
Daniel Stenberg [Sun, 3 Oct 2004 21:02:01 +0000 (21:02 +0000)]
Replaced the use of isspace() with our own version instead since we have most
data as 'char *' and that makes us pass in negative values if there is 8bit
data in the string. Changing to unsigned causes too much warnings or too many
required typecasts to the normal string functions.

20 years agowhen building with libidn support, check for idna_strerror() which is
Daniel Stenberg [Sun, 3 Oct 2004 20:50:47 +0000 (20:50 +0000)]
when building with libidn support, check for idna_strerror() which is
included in very recent versions

20 years agoadded info about how users get info (like the CURLcode return code) from
Daniel Stenberg [Sun, 3 Oct 2004 17:38:57 +0000 (17:38 +0000)]
added info about how users get info (like the CURLcode return code) from
individual transfers

20 years agoremoved trailing whitespace
Daniel Stenberg [Sun, 3 Oct 2004 08:15:40 +0000 (08:15 +0000)]
removed trailing whitespace

20 years agoGisle Vanem provided code that displays an error message when the (libidn
Daniel Stenberg [Sat, 2 Oct 2004 13:01:44 +0000 (13:01 +0000)]
Gisle Vanem provided code that displays an error message when the (libidn
based) IDN conversion fails. This is really due to a missing suitable
function in the libidn API that I hope we can remove once libidn gets a
function like this.

20 years agoremoved weird preprocessor juggling not needed
Daniel Stenberg [Sat, 2 Oct 2004 12:58:27 +0000 (12:58 +0000)]
removed weird preprocessor juggling not needed

20 years agosomeone should hit me
Daniel Stenberg [Fri, 1 Oct 2004 11:27:14 +0000 (11:27 +0000)]
someone should hit me

20 years agoAleksandar Milivojevic reported a problem in the Redhat bugzilla (see
Daniel Stenberg [Fri, 1 Oct 2004 11:22:11 +0000 (11:22 +0000)]
Aleksandar Milivojevic reported a problem in the Redhat bugzilla (see
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=134133) and not to anyone
involved in the curl project! This happens when you try to curl a file from a
proftpd site using SSL. It seems proftpd sends a somewhat unorthodox PASS
response code (232 instead of 230). I relaxed the response code check to deal
with this and similar cases.

20 years agofixed the basename() replacement, reported by Gisle
Daniel Stenberg [Fri, 1 Oct 2004 11:20:38 +0000 (11:20 +0000)]
fixed the basename() replacement, reported by Gisle

20 years agomention when this option was added
Daniel Stenberg [Fri, 1 Oct 2004 06:43:48 +0000 (06:43 +0000)]
mention when this option was added

20 years agoreflect the last few changes
Daniel Stenberg [Fri, 1 Oct 2004 06:43:37 +0000 (06:43 +0000)]
reflect the last few changes

20 years ago- Based on Fedor Karpelevitch's formpost path basename patch, file parts in
Daniel Stenberg [Fri, 1 Oct 2004 06:36:11 +0000 (06:36 +0000)]
- Based on Fedor Karpelevitch's formpost path basename patch, file parts in
  formposts no longer include the path part. If you _really_ want them, you
  must provide your preferred full file name with CURLFORM_FILENAME.

  Added detection for libgen.h and basename() to configure. My custom
  basename() replacement function for systems without it, might be a bit too
  naive...

  Updated 6 test cases to make them work with the stripped paths.

20 years ago- Larry Campbell added CURLINFO_OS_ERRNO to curl_easy_getinfo() that allows an
Daniel Stenberg [Thu, 30 Sep 2004 21:01:23 +0000 (21:01 +0000)]
- Larry Campbell added CURLINFO_OS_ERRNO to curl_easy_getinfo() that allows an
  app to retrieve the errno variable after a (connect) failure. It will make
  sense to provide this for more failures in a more generic way, but let's
  start like this.

20 years agokilled trailing whitespace
Daniel Stenberg [Thu, 30 Sep 2004 20:50:34 +0000 (20:50 +0000)]
killed trailing whitespace

20 years agoGünter Knauf and Casey O'Donnell worked out an extra #if condition for the
Daniel Stenberg [Thu, 30 Sep 2004 19:50:36 +0000 (19:50 +0000)]
Günter Knauf and Casey O'Donnell worked out an extra #if condition for the
curl/multi.h header to work better in winsock-using apps.

20 years agoJean-Philippe Barrette-LaPierre made buildconf run better on Mac OS X by
Daniel Stenberg [Thu, 30 Sep 2004 19:46:32 +0000 (19:46 +0000)]
Jean-Philippe Barrette-LaPierre made buildconf run better on Mac OS X by
properly using glibtoolize instead of plain libtoolize. (This is made if
glibtool was found and used instead of plain libtool.)

20 years ago--max-redirs is _not_ -Z
Daniel Stenberg [Thu, 30 Sep 2004 14:38:29 +0000 (14:38 +0000)]
--max-redirs is _not_ -Z

20 years ago48 - Harshal Pradhan's isspace() fix for 8bit cookie content
Daniel Stenberg [Thu, 30 Sep 2004 12:20:04 +0000 (12:20 +0000)]
48 - Harshal Pradhan's isspace() fix for 8bit cookie content

20 years agoissue 47 - Peter Sylvester's patch related to the new SRP on the TLS layer
Daniel Stenberg [Thu, 30 Sep 2004 11:41:25 +0000 (11:41 +0000)]
issue 47 - Peter Sylvester's patch related to the new SRP on the TLS layer

20 years agofix the multi.h too
Daniel Stenberg [Thu, 30 Sep 2004 11:38:46 +0000 (11:38 +0000)]
fix the multi.h too

20 years agoadded issue 45 "Chris' suspected race condition in the windows threaded
Daniel Stenberg [Thu, 30 Sep 2004 08:01:47 +0000 (08:01 +0000)]
added issue 45 "Chris' suspected race condition in the windows threaded
resolver"

20 years agoadded five things I want fixed before the next release
Daniel Stenberg [Thu, 30 Sep 2004 07:59:17 +0000 (07:59 +0000)]
added five things I want fixed before the next release

20 years agoFixed an error message: we use CWD, we don't cd into dirs with FTP
Daniel Stenberg [Wed, 29 Sep 2004 07:21:23 +0000 (07:21 +0000)]
Fixed an error message: we use CWD, we don't cd into dirs with FTP

20 years agoBertrand Demiddelaer fixed curl_easy_reset() so that it doesn't mistakingly
Daniel Stenberg [Tue, 28 Sep 2004 22:26:47 +0000 (22:26 +0000)]
Bertrand Demiddelaer fixed curl_easy_reset() so that it doesn't mistakingly
enable the progress meter.

20 years ago- Henrik Stoerner fix: got a report that Tru64 Unix (the unix from Digital
Daniel Stenberg [Tue, 28 Sep 2004 22:19:39 +0000 (22:19 +0000)]
- Henrik Stoerner fix: got a report that Tru64 Unix (the unix from Digital
  when they made Alpha's) uses /etc/svc.conf for the purpose fixed below for
  other OSes. He made c-ares check for and understand it if present.

- Now c-ares will use local host name lookup _before_ DNS resolving by default
  if nothing else is told.

20 years agorecent stuff
Daniel Stenberg [Tue, 28 Sep 2004 22:04:17 +0000 (22:04 +0000)]
recent stuff

20 years agomade pkg-config not get used if a path is given with --with-ssl
Daniel Stenberg [Tue, 28 Sep 2004 22:04:05 +0000 (22:04 +0000)]
made pkg-config not get used if a path is given with --with-ssl

20 years agoOnly active the engine code if ssl is enabled. This is how the actual engine
Daniel Stenberg [Tue, 28 Sep 2004 07:11:32 +0000 (07:11 +0000)]
Only active the engine code if ssl is enabled. This is how the actual engine
member in the struct is used.

20 years ago- Henrik Stoerner: found out that C-ARES does not look at the /etc/host.conf
Daniel Stenberg [Sun, 26 Sep 2004 22:35:18 +0000 (22:35 +0000)]
- Henrik Stoerner: found out that C-ARES does not look at the /etc/host.conf
  file to determine the sequence in which to search /etc/hosts and DNS.  So on
  systems where this order is defined by /etc/host.conf instead of a "lookup"
  entry in /etc/resolv.conf, C-ARES will always default to looking in DNS
  first, and /etc/hosts second.

  c-ares now looks at

  1) resolv.conf (for the "lookup" line);
  2) nsswitch.fon (for the "hosts:" line);
  3) host.conf (for the "order" line).

  First match wins.

20 years agoDominick Meglio host file path discovery patch for windows
Daniel Stenberg [Sun, 26 Sep 2004 18:20:58 +0000 (18:20 +0000)]
Dominick Meglio host file path discovery patch for windows

20 years agoBen Greear's minor fix to build (better) with cross-compiled(?) mingw
Daniel Stenberg [Sun, 26 Sep 2004 06:53:53 +0000 (06:53 +0000)]
Ben Greear's minor fix to build (better) with cross-compiled(?) mingw

20 years agoallow setting CURLOPT_SSLENGINE to NULL even if no SSL engine is supported
Daniel Stenberg [Sat, 25 Sep 2004 21:28:26 +0000 (21:28 +0000)]
allow setting CURLOPT_SSLENGINE to NULL even if no SSL engine is supported

20 years agoDan Fandrich patched three tests
Daniel Stenberg [Wed, 22 Sep 2004 18:23:14 +0000 (18:23 +0000)]
Dan Fandrich patched three tests

20 years agoDan Fandrich's fix to use 127.0.0.1 instead of localhost to not depend on
Daniel Stenberg [Wed, 22 Sep 2004 18:21:45 +0000 (18:21 +0000)]
Dan Fandrich's fix to use 127.0.0.1 instead of localhost to not depend on
it resolving nicely

20 years agoJean-Claude Chauve is a friend!
Daniel Stenberg [Wed, 22 Sep 2004 12:54:41 +0000 (12:54 +0000)]
Jean-Claude Chauve is a friend!

20 years agotypo
Daniel Stenberg [Wed, 22 Sep 2004 12:53:58 +0000 (12:53 +0000)]
typo

20 years agojean-claude Chauve fixed an LDAP bug
Daniel Stenberg [Wed, 22 Sep 2004 08:01:41 +0000 (08:01 +0000)]
jean-claude Chauve fixed an LDAP bug

20 years agoless long => int implicit conversion warnings
Daniel Stenberg [Mon, 20 Sep 2004 13:21:48 +0000 (13:21 +0000)]
less long => int implicit conversion warnings

20 years agoremoved getdate.c hack.
Gunter Knauf [Sun, 19 Sep 2004 23:30:34 +0000 (23:30 +0000)]
removed getdate.c hack.

20 years agoadded URL to the exception paragraph in the GPL FAQ
Daniel Stenberg [Sun, 19 Sep 2004 22:37:26 +0000 (22:37 +0000)]
added URL to the exception paragraph in the GPL FAQ

20 years agothe error message fix for failed connects
Daniel Stenberg [Sun, 19 Sep 2004 14:30:16 +0000 (14:30 +0000)]
the error message fix for failed connects