Daniel Stenberg [Wed, 30 Apr 2008 21:20:08 +0000 (21:20 +0000)]
- To make it easier for applications that want lots of magic stuff done on
redirections and thus cannot use CURLOPT_FOLLOWLOCATION easily, we now
introduce the new CURLINFO_REDIRECT_URL option that lets applications
extract the URL libcurl would've redirected to if it had been told to. This
then enables the application to continue to that URL as it thinks is
suitable, without having to re-implement the magic of creating the new URL
from the Location: header etc. Test 1029 verifies it.
Daniel Stenberg [Mon, 28 Apr 2008 21:29:17 +0000 (21:29 +0000)]
- Norbert Frese filed bug report #1951588: "Problem with curlftpfs and
libcurl" (http://curl.haxx.se/bug/view.cgi?id=1951588) which seems to be an
identical report to what Denis Golovan reported in
http://curl.haxx.se/mail/lib-2008-02/0108.html The FTP code didn't reset the
user/password pointers properly even though there might've been a new
struct/cconnection getting used.
Yang Tse [Tue, 22 Apr 2008 12:40:05 +0000 (12:40 +0000)]
Remove fflush() + fsync() previously introduced accelerated writing of
server input and response request files of the test harness sws server.
Reintroduce, for test # 1001, the <postcheck> small delay. The delay is
needed even with the accelerated writing of server input and response
request files in test harness sws server.
Yang Tse [Tue, 22 Apr 2008 00:23:18 +0000 (00:23 +0000)]
Remove previously introduced small delay to verify if it can be avoided
with the accelerated writing of server input and response request files
in test harness sws server.
Yang Tse [Fri, 18 Apr 2008 17:25:54 +0000 (17:25 +0000)]
test 1001 needs a small delay between client part execution and test
result file verifications to allow the test server to completely write
out all files
Yang Tse [Fri, 18 Apr 2008 17:17:14 +0000 (17:17 +0000)]
test 1001 needs a small delay between client part execution and test
result file verifications to allow the test server to completely write
out all files
Daniel Stenberg [Wed, 16 Apr 2008 21:11:46 +0000 (21:11 +0000)]
Added test case 555, a variation of 547 but using multi interface instead of
easy. This was reported not working by Penugonda Chenna Reddy in
http://curl.haxx.se/mail/lib-2008-04/0046.html but I fail to repeat that
problem.
Daniel Stenberg [Mon, 14 Apr 2008 15:26:34 +0000 (15:26 +0000)]
- Stefan Krause reported a case where the OpenSSL handshake phase wasn't
properly acknowledging the timeout values, like if you pulled the network
plug in the midst of it.
Daniel Stenberg [Mon, 14 Apr 2008 15:19:05 +0000 (15:19 +0000)]
- Sandor Feldi reported bug #1942022
(http://curl.haxx.se/bug/view.cgi?id=1942022) pointing out a mistake in the
lib/Makefile.vc[68] makefiles' release-ssl-dll target.
Dan Fandrich [Thu, 10 Apr 2008 04:21:08 +0000 (04:21 +0000)]
Added test case 1024 to test a scenario similar to the one reported
by Ben Combee where libcurl would send the wrong cookie to a redirected
server. libcurl was doing the right thing in this test case.
Michal Marek [Mon, 7 Apr 2008 09:26:30 +0000 (09:26 +0000)]
- Fix the MIT / Heimdal check for good:
Define HAVE_GSSMIT if <gssapi/{gssapi.h,gssapi_generic.h,gssapi_krb5.h}> are
available, otherwise define HAVE_GSSHEIMDAL if <gssapi.h> is available.
Only define GSS_C_NT_HOSTBASED_SERVICE to gss_nt_service_name if
GSS_C_NT_HOSTBASED_SERVICE isn't declared by the gssapi headers. This should
avoid breakage in case we wrongly recognize Heimdal as MIT again.
Daniel Stenberg [Sat, 5 Apr 2008 21:02:38 +0000 (21:02 +0000)]
- Based on the Debian bug report #474224 that complained about the FTP error
message when libcurl doesn't get a 220 back immediately on connect, I now
changed it to be more specific on what the problem is. Also worth noticing:
while the bug report contains an example where the response is:
421 There are too many connected users, please try again later
we cannot assume that the error message will always be this readable nor
that it fits within a particular boundary etc.
Daniel Stenberg [Thu, 3 Apr 2008 21:44:49 +0000 (21:44 +0000)]
- Setting CURLOPT_NOBODY to FALSE will now switch the HTTP request method to
GET simply because previously when you set CURLOPT_NOBODY to TRUE first and
then FALSE you'd end up in a broken state where a HTTP request would do a
HEAD by still act a lot like for a GET and hang waiting for the content etc.
Daniel Stenberg [Mon, 31 Mar 2008 10:02:23 +0000 (10:02 +0000)]
- Added CURLFORM_STREAM as a supported option to curl_formadd() to allow an
application to provide data for a multipart with the read callback. Note
that the size needs to be provided with CURLFORM_CONTENTSLENGTH when the
stream option is used. This feature is verified by the new test case
554. This feature was sponsored by Xponaut.
Dan Fandrich [Mon, 31 Mar 2008 03:01:13 +0000 (03:01 +0000)]
Changed the makefile so the doc/examples/ programs are never built in a
normal build/install (only with the 'make check' target), so that a
build failure in the examples isn't fatal.
Daniel Stenberg [Thu, 27 Mar 2008 13:07:12 +0000 (13:07 +0000)]
- As found out and reported by Dan Petitt, libcurl didn't show progress/call
the progress callback for the first (potentially huge) piece of body data
sent together with the POST request headers in the initial send().
Daniel Stenberg [Tue, 25 Mar 2008 19:19:49 +0000 (19:19 +0000)]
- Made setting the CURLOPT_SSL_CTX_FUNCTION option return a failure in case
libcurl wasn't built to use OpenSSL as that is a prerequisite for this
option to function!