Daniel Stenberg [Fri, 8 Feb 2008 11:16:44 +0000 (11:16 +0000)]
Günter Knauf added lib/mk-ca-bundle.pl which gets the Firefox ca bundle and
creates a suitable ca-bundle.crt file in PEM format for use with curl. The
recommended way to run it is to use 'make ca-bundle' in the build tree root.
Daniel Stenberg [Fri, 8 Feb 2008 11:11:59 +0000 (11:11 +0000)]
provide the ca-bundle target the same way as the Makefile.dist does it so that
it works the same way for configure-based platforms as for non-configure ones
Gunter Knauf [Fri, 8 Feb 2008 02:57:27 +0000 (02:57 +0000)]
added ca-bundle target to main makefile;
for now this does rename the existing ca-bundle.crt to ca-bundle.crt.old;
maybe we can remove this once we are 100% sure that the new script works properly, and just overwrite the shipping one?
Daniel Stenberg [Thu, 7 Feb 2008 22:25:04 +0000 (22:25 +0000)]
- Refactored a lot of timeout code into a few functions in an attempt to make
them all use the same (hopefully correct) logic to make it less error-prone
and easier to introduce library-wide where it should be used.
Daniel Stenberg [Thu, 7 Feb 2008 15:43:36 +0000 (15:43 +0000)]
ca-bundle.crt documentational updates that more clearly describe the bundle
ca-bundle.crt file as outdated and in need for replacement by anyone who wants
to verify modern peers as the one we have is from year 2000!
Yang Tse [Tue, 5 Feb 2008 02:21:38 +0000 (02:21 +0000)]
proper initialization of httprequest, no longer zeroing out twice
the whole 150000+ bytes struct, and also removing an equally big
additional buffer for pipelining treatment.
Daniel Stenberg [Sun, 3 Feb 2008 12:28:48 +0000 (12:28 +0000)]
threaded-ssl.c is a little example that does multi-threaded downloads from
HTTPS sites with OpenSSL-enabled libcurl (and pthreads) and thus do the
thread-locking and things openssl-style.
Dan Fandrich [Fri, 1 Feb 2008 20:34:27 +0000 (20:34 +0000)]
Make mkinstalldirs ignore umask, for consistency with the rest of the
install process. Note that mkinstalldirs appears to be used only
in some configurations.
Daniel Stenberg [Thu, 31 Jan 2008 12:21:57 +0000 (12:21 +0000)]
- Niklas Angebrand made the cookie support in libcurl properly deal with the
"HttpOnly" feature introduced by Microsoft and apparently also supported by
Firefox: http://msdn2.microsoft.com/en-us/library/ms533046.aspx . HttpOnly
is now supported when received from servers in HTTP headers, when written to
cookie jars and when read from existing cookie jars.
Daniel Stenberg [Thu, 31 Jan 2008 12:04:33 +0000 (12:04 +0000)]
- Dmitry Kurochkin moved several struct fields from the connectdata struct to
the SingleRequest one to make pipelining better. It is a bit tricky to keep
them in the right place, to keep things related to the actual request or to
the actual connection in the right place.
Daniel Stenberg [Thu, 31 Jan 2008 11:36:05 +0000 (11:36 +0000)]
bug 51 may possibly be fixed, and as such it is not a known bug anymore:
51.Kevin Reed's reported problem with a proxy when doing CONNECT and it
wants NTLM and close the connection to the initial CONNECT response:
http://curl.haxx.se/bug/view.cgi?id=1879375
Daniel Stenberg [Sun, 27 Jan 2008 22:53:09 +0000 (22:53 +0000)]
Dmitry Kurochkin: In "real world" testing I found more bugs in
pipelining. Broken connection is not restored and we get into infinite
loop. It happens because of wrong is_in_pipeline values.
Daniel Stenberg [Fri, 25 Jan 2008 23:33:45 +0000 (23:33 +0000)]
- Kevin Reed filed bug report #1879375
(http://curl.haxx.se/bug/view.cgi?id=1879375) which describes how libcurl
got lost in this scenario: proxy tunnel (or HTTPS over proxy), ask to do any
proxy authentication and the proxy replies with an auth (like NTLM) and then
closes the connection after that initial informational response.
libcurl would not properly re-initialize the connection to the proxy and
continue the auth negotiation like supposed. It does now however, as it will
now detect if one or more authentication methods were available and asked
for, and will thus retry the connection and continue from there.
- I made the progress callback get called properly during proxy CONNECT.
Gunter Knauf [Wed, 23 Jan 2008 02:10:40 +0000 (02:10 +0000)]
removed inclusion of libcurl memory debug headers since this lib stub is a well proofed method suggested by Novell. This enables usage of the stub with language bindings.
Daniel Stenberg [Mon, 21 Jan 2008 23:48:58 +0000 (23:48 +0000)]
Dmitry Kurochkin removed the cancelled state for pipelining, as we agreed
that it is bad anyway. Starting now, removing a handle that is in used in a
pipeline will break the pipeline - it'll be set back up again but still...
Daniel Stenberg [Fri, 18 Jan 2008 21:51:10 +0000 (21:51 +0000)]
Lau Hang Kin found and fixed a problem with the multi interface when doing
CONNECT over a proxy. curl_multi_fdset() didn't report back the socket
properly during that state, due to a missing case in the switch in the
multi_getsock() function.
Yang Tse [Fri, 18 Jan 2008 05:58:00 +0000 (05:58 +0000)]
to actually allow really big HTTP POSTs curl's postfieldsize type is changed to
curl_off_t and CURLOPT_POSTFIELDSIZE_LARGE is used to pass value to libcurl
Daniel Stenberg [Wed, 16 Jan 2008 22:54:54 +0000 (22:54 +0000)]
Added test 553. This test case and code is based on the bug recipe Joe Malicki
provided for bug report #1871269, fixed on Jan 14 2008 before the 7.18.0
release.
Daniel Stenberg [Wed, 16 Jan 2008 12:24:00 +0000 (12:24 +0000)]
Dmitry Kurochkin worked a lot on improving the HTTP Pipelining support that
previously had a number of flaws, perhaps most notably when an application
fired up N transfers at once as then they wouldn't pipeline at all that
nicely as anyone would think... Test case 530 was also updated to take the
improved functionality into account.
Daniel Stenberg [Tue, 15 Jan 2008 22:44:12 +0000 (22:44 +0000)]
Woops, partly revert my previous commit and do it slightly differently instead.
The signalling of that a global DNS cache is wanted is done by setting the
option but the setting of the internal variable that it is in use must not be
done until it finally actually gets used!
NOTE and WARNING: I noticed that you can't actually switch off the global dns
cache with CURLOPT_DNS_USE_GLOBAL_CACHE but you couldn't do that previously
either and the option is very clearly and loudly documented as DO NOTE USE so
I won't bother to fix this bug now.
Daniel Stenberg [Tue, 15 Jan 2008 22:15:55 +0000 (22:15 +0000)]
I made the torture test on test 530 go through. This was actually due to
silly code left from when we switched to let the multi handle "hold" the dns
cache when using the multi interface... Of course this only triggered when a
certain function call returned error at the correct moment.
Daniel Stenberg [Mon, 14 Jan 2008 22:02:14 +0000 (22:02 +0000)]
Joe Malicki filed bug report #1871269
(http://curl.haxx.se/bug/view.cgi?id=1871269) and we could fix his hang-
problem that occurred when doing a large HTTP POST request with the
response-body read from a callback.