Daniel Stenberg [Wed, 12 Sep 2007 10:46:14 +0000 (10:46 +0000)]
Extracting the CURLINFO_PRIVATE pointer makes no point since nothing set
it. This caused a segfault in some fprintf() implementations. Like on Solaris.
Daniel Stenberg [Tue, 11 Sep 2007 22:23:57 +0000 (22:23 +0000)]
Daniel S (12 September 2007)
- Bug report #1792649 (http://curl.haxx.se/bug/view.cgi?id=1792649) pointed
out a problem with doing an empty upload over FTP on a re-used connection.
I added test case 541 to reproduce it and to verify the fix.
- I noticed while writing test 541 that the FTP code wrongly did a CWD on the
second transfer as it didn't store and remember the "" path from the
previous transfer so it would instead CWD to the entry path as stored. This
worked, but did a superfluous command. Thus, test case 541 now also verifies
this fix.
Daniel Stenberg [Tue, 11 Sep 2007 22:21:39 +0000 (22:21 +0000)]
- I noticed while writing test 541 that the FTP code wrongly did a CWD on the
second transfer as it didn't store and remember the "" path from the
previous transfer so it would instead CWD to the entry path as stored. This
worked, but did a superfluous command. Thus, test case 541 now also verifies
this fix.
Daniel Stenberg [Tue, 11 Sep 2007 22:21:12 +0000 (22:21 +0000)]
- Bug report #1792649 (http://curl.haxx.se/bug/view.cgi?id=1792649) pointed
out a problem with doing an empty upload over FTP on a re-used connection.
I added test case 541 to reproduce it and to verify the fix.
Daniel Stenberg [Wed, 5 Sep 2007 21:41:07 +0000 (21:41 +0000)]
Curl_GetFTPResponse() now checks and properly deals with the fact that the
underlying ftp_readresp() function has a separate "cache" where there might
in fact be leftover data...
Dan Fandrich [Fri, 31 Aug 2007 19:36:32 +0000 (19:36 +0000)]
Renamed the CURLE_FTP_SSL_FAILED error code to CURLE_USE_SSL_FAILED.
Renamed the curl_ftpssl enum to curl_usessl and its enumerated constants,
creating macros for backward compatibility.
Dan Fandrich [Thu, 30 Aug 2007 20:34:57 +0000 (20:34 +0000)]
Renamed several libcurl error codes and options to make them more general
and allow reuse by multiple protocols. Several unused error codes were
removed. In all cases, macros were added to preserve source (and binary)
compatibility with the old names. These macros are subject to removal at
a future date, but probably not before 2009. An application can be
tested to see if it is using any obsolete code by compiling it with the
CURL_NO_OLDIES macro defined.
Documented some newer error codes in libcurl-error(3)
Patrick Monnerat [Fri, 24 Aug 2007 15:56:59 +0000 (15:56 +0000)]
Adding DOCS file in OS400 installation library with license and various other documentation text files.
Setting character set of OS400 installed source components
Daniel Stenberg [Fri, 24 Aug 2007 14:00:42 +0000 (14:00 +0000)]
Bug report #1779054 (http://curl.haxx.se/bug/view.cgi?id=1779054) pointed
out that libcurl didn't deal with large responses from server commands, when
the single response was consisting of multiple lines but of a total size of
16KB or more. Dan Fandrich improved the ftp test script and provided test
case 1006 to repeat the problem, and I fixed the code to make sure this new
test case runs fine.
Daniel Stenberg [Thu, 23 Aug 2007 14:46:37 +0000 (14:46 +0000)]
Add the files in the OS400 dir to the dist. I didn't add it as a new subdir
just because if I do that automake does funny things automatically with the
makefile.sh file in that directory and thus doing it this way was a quick
work-around that annoyance!
Daniel Stenberg [Wed, 22 Aug 2007 22:48:41 +0000 (22:48 +0000)]
Bug report #1779751 (http://curl.haxx.se/bug/view.cgi?id=1779751) pointed
out that doing first a file:// upload and then an FTP upload crashed libcurl
or at best caused furious valgrind complaints. Fixed now by making sure we
free and clear the file-specific struct properly when done with it.
Daniel Stenberg [Wed, 22 Aug 2007 14:18:06 +0000 (14:18 +0000)]
Bug report #1779054 (http://curl.haxx.se/bug/view.cgi?id=1779054) pointed
out that libcurl didn't deal with very long (>16K) FTP server response lines
properly. Starting now, libcurl will chop them off (thus the client app will
not get the full line) but survive and deal with them fine otherwise. Test
case 1003 was added to verify this.
Daniel Stenberg [Wed, 22 Aug 2007 13:57:49 +0000 (13:57 +0000)]
Upped the buffer size to 17000+ bytes to prepare for the upcoming test 1003
that verfies ridiculously long server response lines. Also changed sprintf
to snprintf in a few places.
Daniel Stenberg [Mon, 20 Aug 2007 21:54:00 +0000 (21:54 +0000)]
Based on a patch by Christian Vogt, the FTP code now sets the upcoming
download transfer size much earlier to be possible to get read with
CURLINFO_CONTENT_LENGTH_DOWNLOAD as soon as possible.
Gunter Knauf [Mon, 20 Aug 2007 16:30:41 +0000 (16:30 +0000)]
fixed ldaps section for OpenLDAP. Still not working, but at least it compiles now, and should serve as base to get it finally working. Also seems that the ifdefs can be arranged some better because the Solaris and Netscape/iPlanet/Mozilla LDAP SDKs seem to be closer to the Novell section than the OpenLDAP one.
Gunter Knauf [Sun, 19 Aug 2007 23:23:50 +0000 (23:23 +0000)]
ignore errors of the RM command; seems that the del command fails on W2K when the file to delete isnt found while on XP it only prints the warning but make continues....
Daniel Stenberg [Fri, 17 Aug 2007 22:31:51 +0000 (22:31 +0000)]
- Robson Braga Araujo filed bug report #1776232
(http://curl.haxx.se/bug/view.cgi?id=1776232) about libcurl calling
Curl_client_write(), passing on a const string that the caller may not
modify and yet it does (on some platforms).
Daniel Stenberg [Fri, 17 Aug 2007 22:22:43 +0000 (22:22 +0000)]
Robson Braga Araujo filed bug report #1776235
(http://curl.haxx.se/bug/view.cgi?id=1776235) about ftp requests with NOBODY
on a directory would do a "SIZE (null)" request. This is now fixed and test
case 1000 was added to verify.
Daniel Stenberg [Fri, 17 Aug 2007 20:21:32 +0000 (20:21 +0000)]
Song Ma provided a patch that cures a problem libcurl has when doing resume
HTTP PUT using Digest authentication. Test case 5320 and 5322 were also
added to verify the functionality.
Gunter Knauf [Thu, 16 Aug 2007 14:08:47 +0000 (14:08 +0000)]
added basic ldaps support; for now its ifdef'd with HAVE_LDAP_SSL unless we know its fully working, and available with all LDAP SDKs.
Win32 requires to have the trusted CA in local keystore - I've not found yet a way to disable the cert check.