Dan Fandrich [Tue, 25 Nov 2008 23:23:47 +0000 (23:23 +0000)]
If a HTTP request is Basic and num is already >=1000, the HTTP test server
adds 1 to num to get the data section to return. This allows testing
authentication negotiations using the Basic authentication method.
Yang Tse [Tue, 25 Nov 2008 16:26:58 +0000 (16:26 +0000)]
In preparation for the upcomming IPv6 nameservers patch, the internal
ares_addr union is now changed into an internal struct which also holds
the address family.
Daniel Stenberg [Mon, 24 Nov 2008 13:59:51 +0000 (13:59 +0000)]
- Based on a patch by Vlad Grachov, libcurl now uses a new libssh2 0.19
function when built to support SCP and SFTP that helps the library to know
in which direction a particular libssh2 operation would return EAGAIN so
that libcurl knows what socket conditions to wait for before trying the
function call again. Previously (and still when using libssh2 0.18 or
earlier), libcurl will busy-loop in this situation when the easy interface
is used!
Dan Fandrich [Thu, 20 Nov 2008 07:59:26 +0000 (07:59 +0000)]
Make checking for struct ifreq a prerequisite for setting
HAVE_IOCTL_SIOCGIFADDR since it's needed to use SIOCGIFADDR and Watcom C
doesn't currently define it.
Daniel Stenberg [Wed, 19 Nov 2008 22:00:14 +0000 (22:00 +0000)]
- I removed the default use of "Pragma: no-cache" from libcurl when a proxy is
used. It has been used since forever but it was never a good idea to use
unless explicitly asked for.
Daniel Stenberg [Wed, 19 Nov 2008 21:56:11 +0000 (21:56 +0000)]
Josef Wolf's extension that allows a $TESTDIR/gdbinit$testnum file that when
you use runtests.pl -g, will be sourced by gdb to allow additional fancy
or whatever you see fit
Daniel Stenberg [Wed, 19 Nov 2008 15:30:41 +0000 (15:30 +0000)]
I updated this example to use the modern paradigms of the socket API where
*_socket_all() and *_socket() aren't used at all but only *_socket_action()
is.
Daniel Stenberg [Wed, 19 Nov 2008 15:16:16 +0000 (15:16 +0000)]
- Brad Spencer brought the new function ares_gethostbyname_file() which simply
resolves a host name from the given file, using the regular hosts syntax.
Daniel Stenberg [Wed, 19 Nov 2008 14:22:01 +0000 (14:22 +0000)]
- Christian Krause reported and fixed a memory leak that would occur with HTTP
GSS/kerberos authentication (http://curl.haxx.se/bug/view.cgi?id=2284386)
Daniel Stenberg [Wed, 19 Nov 2008 10:15:19 +0000 (10:15 +0000)]
- Andreas Wurf and Markus Koetter helped me analyze a problem that Andreas got
when uploading files to a single FTP server using multiple easy handle
handles with the multi interface. Occasionally a handle would stall in
mysterious ways.
The problem turned out to be a side-effect of the ConnectionExists()
function's eagerness to re-use a handle for HTTP pipelining so it would
select it even if already being in use, due to an inadequate check for its
chances of being used for pipelnining.
Dan Fandrich [Mon, 17 Nov 2008 08:16:25 +0000 (08:16 +0000)]
Fixed an outdated mention of having keep strings around in curl_easy_setopt
calls. Added a paragraph explaining that libcurl takes care of low-level
protocol details. Made a few minor edits.
Daniel Stenberg [Sat, 15 Nov 2008 23:43:10 +0000 (23:43 +0000)]
based on a report by Jim Meyering, I went over and added checks for return
codes for all calls to malloc and strdup that were missing. I also changed
a few malloc(13) to use arrays on the stack and a few malloc(PATH_MAX) to
instead use aprintf() to lower memory use.
I also fixed a memory leak in Curl_nss_connect() when CURLOPT_ISSUERCERT is
in use.
Dan Fandrich [Fri, 14 Nov 2008 19:22:40 +0000 (19:22 +0000)]
Added .xml as one of the few common file extensions known by the multipart
form generator. Made the extensions part of the MIME type struct to reduce
the size and run-time relocations necessary to build the table.
Daniel Stenberg [Fri, 14 Nov 2008 16:42:05 +0000 (16:42 +0000)]
check for NULL returns from strdup() - reported by Jim Meyering
also prevent buffer overflow on MSDOS when you do for example -O on a url
with a file name part longer than PATH_MAX letters
Daniel Stenberg [Tue, 11 Nov 2008 22:19:27 +0000 (22:19 +0000)]
- Rainer Canavan filed bug #2255627
(http://curl.haxx.se/bug/view.cgi?id=2255627) which pointed out that a
program using libcurl's multi interface to download a HTTPS page with a
libcurl built powered by OpenSSL, would easily get silly and instead hand
over SSL details as data instead of the actual HTTP headers and body. This
happened because libcurl would consider the connection handshake done too
early. This problem was introduced at September 22nd 2008 with my fix of the
bug #2107377
The correct fix is now instead done within the GnuTLS-handling code, as both
the OpenSSL and the NSS code already deal with this situation in similar
fashion. I added test case 560 in an attempt to verify this fix, but
unfortunately it didn't trigger it even before this fix!
Daniel Stenberg [Tue, 11 Nov 2008 21:59:25 +0000 (21:59 +0000)]
Added test case 560:
This test was added after the HTTPS-using-multi-interface with OpenSSL
regression of 7.19.1 to hopefully prevent this embarassing 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 with.
Yang Tse [Tue, 11 Nov 2008 01:12:17 +0000 (01:12 +0000)]
Related with bug #2230535 (http://curl.haxx.se/bug/view.cgi?id=2230535)
Daniel Fandrich noticed that curl_addrinfo was also missing in the build
process of other four non-configure platforms. Added now.
Dan Fandrich [Fri, 7 Nov 2008 18:33:20 +0000 (18:33 +0000)]
The getifaddrs() version of Curl_if2ip() crashed when used on a Linux
system with a TEQL load-balancing device configured, which doesn't
have an address. Thanks to Adam Sampson for spotting this (bug #2234923).
Yang Tse [Thu, 6 Nov 2008 19:11:46 +0000 (19:11 +0000)]
Bug #2230535 (http://curl.haxx.se/bug/view.cgi?id=2230535) pointed out a
problem with MSVC 6 makefile that caused a build failure. It was noted that
the curl_addrinfo.obj reference was missing. I took the opportunity to sort
the list in which this was missing.