platform/upstream/curl.git
22 years agoadded typecast for a malloc() return, and added check for NULL
Daniel Stenberg [Fri, 18 Jan 2002 10:30:51 +0000 (10:30 +0000)]
added typecast for a malloc() return, and added check for NULL

22 years agoAdded #include <errno.h>
Daniel Stenberg [Fri, 18 Jan 2002 09:25:58 +0000 (09:25 +0000)]
Added #include <errno.h>

22 years agoAndrés García patched. It now checks for EWOULDBLOCK properly on windows
Daniel Stenberg [Fri, 18 Jan 2002 08:03:54 +0000 (08:03 +0000)]
Andrés García patched. It now checks for EWOULDBLOCK properly on windows
boxes.

22 years agopatched by Andrés García
Daniel Stenberg [Fri, 18 Jan 2002 08:03:12 +0000 (08:03 +0000)]
patched by Andrés García

22 years ago7.9.3-pre3
Daniel Stenberg [Thu, 17 Jan 2002 14:34:26 +0000 (14:34 +0000)]
7.9.3-pre3

22 years agocorrect ssl version, fixed ssl writes, solved time-out disconnect without
Daniel Stenberg [Thu, 17 Jan 2002 14:25:49 +0000 (14:25 +0000)]
correct ssl version, fixed ssl writes, solved time-out disconnect without
text, fixed dns cache problem, made it compile with openssl before 0.9.5
again and extended libcurl-the-guide a bit more

22 years agomore text added
Daniel Stenberg [Thu, 17 Jan 2002 14:24:25 +0000 (14:24 +0000)]
more text added

22 years agoadded a comment about this example only works with 7.9.3 and newer libs
Daniel Stenberg [Thu, 17 Jan 2002 13:45:19 +0000 (13:45 +0000)]
added a comment about this example only works with 7.9.3 and newer libs

22 years agoRichard Archer made it compile and build with OpenSSL versions prior to
Daniel Stenberg [Thu, 17 Jan 2002 10:40:13 +0000 (10:40 +0000)]
Richard Archer made it compile and build with OpenSSL versions prior to
0.9.5

22 years agoinclude our own sprintf() prototype to make it return sensible data on
Daniel Stenberg [Thu, 17 Jan 2002 08:03:48 +0000 (08:03 +0000)]
include our own sprintf() prototype to make it return sensible data on
all platforms, I also edited a few data types slightly to prevent my
compiler from warning on comparisions between signed and unsigned values

22 years agoGet this working, still need to check for leaks and such, but should be
Sterling Hughes [Thu, 17 Jan 2002 07:38:25 +0000 (07:38 +0000)]
Get this working, still need to check for leaks and such, but should be
fine..

22 years agoMake the keys for hostcache entries be in the format::
Sterling Hughes [Thu, 17 Jan 2002 06:55:37 +0000 (06:55 +0000)]
Make the keys for hostcache entries be in the format::
host:port, so accessing curl.haxx.se on port 80 would yield a key value
of ::
curl.haxx.se:80

22 years agofilled-in text in the "Building" chapter and added a "libcurl with C++"
Daniel Stenberg [Thu, 17 Jan 2002 00:27:56 +0000 (00:27 +0000)]
filled-in text in the "Building" chapter and added a "libcurl with C++"
chapter

22 years agoSSL writes passed back a silly length...
Daniel Stenberg [Wed, 16 Jan 2002 23:28:58 +0000 (23:28 +0000)]
SSL writes passed back a silly length...

22 years agofixed time-out returned without error text set
Daniel Stenberg [Wed, 16 Jan 2002 22:26:01 +0000 (22:26 +0000)]
fixed time-out returned without error text set

22 years agoKevin Roth's SSLeay() patch, slight edited by me. Works with OpenSSL 0.9.5
Daniel Stenberg [Wed, 16 Jan 2002 17:45:08 +0000 (17:45 +0000)]
Kevin Roth's SSLeay() patch, slight edited by me. Works with OpenSSL 0.9.5
now.

22 years ago7.9.3-pre2
Daniel Stenberg [Wed, 16 Jan 2002 15:12:12 +0000 (15:12 +0000)]
7.9.3-pre2

22 years ago--cc and working non-blocking sockets uploads
Daniel Stenberg [Wed, 16 Jan 2002 15:04:37 +0000 (15:04 +0000)]
--cc and working non-blocking sockets uploads

22 years ago- shrunk the BUFSIZE define from 50K to 20K
Daniel Stenberg [Wed, 16 Jan 2002 14:53:19 +0000 (14:53 +0000)]
- shrunk the BUFSIZE define from 50K to 20K
- made a separate buffer for uploads (due to the non-blocking stuff)
- added two connectdata struct fields for non-blocking uploads

22 years agomodified to deal with the new non-blocking versions of Curl_read() and
Daniel Stenberg [Wed, 16 Jan 2002 14:50:53 +0000 (14:50 +0000)]
modified to deal with the new non-blocking versions of Curl_read() and
Curl_write().

22 years agoCurl_write's 5th argument now is signed
Daniel Stenberg [Wed, 16 Jan 2002 14:49:51 +0000 (14:49 +0000)]
Curl_write's 5th argument now is signed

22 years agoCurl_read() and Curl_write() are both now adjusted to return properly in
Daniel Stenberg [Wed, 16 Jan 2002 14:49:08 +0000 (14:49 +0000)]
Curl_read() and Curl_write() are both now adjusted to return properly in
cases where EWOULDBLOCK or equivalent is returned. We must not block.

22 years agoCurl_write() now takes a different 5th argument
Daniel Stenberg [Wed, 16 Jan 2002 14:47:50 +0000 (14:47 +0000)]
Curl_write() now takes a different 5th argument

22 years agoSomewhat ugly fix to deal with non-blocking sockets. We just loop and try
Daniel Stenberg [Wed, 16 Jan 2002 14:47:00 +0000 (14:47 +0000)]
Somewhat ugly fix to deal with non-blocking sockets. We just loop and try
again. THIS IS NOT A NICE FIX.

22 years agoSomewhat ugly fix to deal with non-blocking sockets. We just loop and try
Daniel Stenberg [Wed, 16 Jan 2002 14:46:00 +0000 (14:46 +0000)]
Somewhat ugly fix to deal with non-blocking sockets. We just loop and try
again. THIS IS NOT A NICE FIX. We should/must make a select() then and only
retry when we can write to the socket again.

22 years agoadded support for --cc to output the compiler name. This makes it possible
Daniel Stenberg [Wed, 16 Jan 2002 14:20:06 +0000 (14:20 +0000)]
added support for --cc to output the compiler name. This makes it possible
to compile libcurl stuff without any prior knowledge:

cc=`curl-config --cc`
cflags=`curl-config --cflags`
libs=`curl-config --libs`

$cc $flags $libs -o example example.c

Or if you prefer, the oh-so-cool single-line version:

`curl-config --cc --cflags --libs` -o example example.c

22 years agoadded a somewhat cool single-line command that builds most example sources
Daniel Stenberg [Wed, 16 Jan 2002 14:13:54 +0000 (14:13 +0000)]
added a somewhat cool single-line command that builds most example sources
on unix-like systems

22 years agoinitial attempt to write a tutorial-like libcurl guide
Daniel Stenberg [Tue, 15 Jan 2002 08:22:00 +0000 (08:22 +0000)]
initial attempt to write a tutorial-like libcurl guide

22 years agofixed non-blocking reads, fixed ssl sessions, in_addr_t and more non-blocking
Daniel Stenberg [Mon, 14 Jan 2002 23:32:57 +0000 (23:32 +0000)]
fixed non-blocking reads, fixed ssl sessions, in_addr_t and more non-blocking

22 years agoCurl_read() now returns a negative return code if EWOULDBLOCK or similar
Daniel Stenberg [Mon, 14 Jan 2002 23:14:59 +0000 (23:14 +0000)]
Curl_read() now returns a negative return code if EWOULDBLOCK or similar

22 years agoa memory leak when name lookup failed is now removed
Daniel Stenberg [Mon, 14 Jan 2002 23:14:24 +0000 (23:14 +0000)]
a memory leak when name lookup failed is now removed

22 years agoStoned Elipot's patch for the in_addr_t test
Daniel Stenberg [Mon, 14 Jan 2002 07:53:09 +0000 (07:53 +0000)]
Stoned Elipot's patch for the in_addr_t test

22 years agoRemove erreaneous include, setup.h is included one line above
Sterling Hughes [Mon, 14 Jan 2002 05:36:28 +0000 (05:36 +0000)]
Remove erreaneous include, setup.h is included one line above

22 years agoGötz Babin-Ebell updated with some new 7.9.3 features
Daniel Stenberg [Sun, 13 Jan 2002 11:32:36 +0000 (11:32 +0000)]
Götz Babin-Ebell updated with some new 7.9.3 features

22 years agoGötz Babin-Ebell provided some documantation for the ENGINE stuff
Daniel Stenberg [Sun, 13 Jan 2002 11:32:05 +0000 (11:32 +0000)]
Götz Babin-Ebell provided some documantation for the ENGINE stuff

22 years agoadded http-post.c
Daniel Stenberg [Thu, 10 Jan 2002 09:00:02 +0000 (09:00 +0000)]
added http-post.c

22 years agoslightly extended to mention that -v and -i are good options to use when
Daniel Stenberg [Thu, 10 Jan 2002 07:38:53 +0000 (07:38 +0000)]
slightly extended to mention that -v and -i are good options to use when
reporting bugs

22 years agobad comment begone
Daniel Stenberg [Wed, 9 Jan 2002 13:23:01 +0000 (13:23 +0000)]
bad comment begone

22 years agocut off argc and argv as well
Daniel Stenberg [Wed, 9 Jan 2002 13:22:31 +0000 (13:22 +0000)]
cut off argc and argv as well

22 years agoCleaned up this example to make it even simpler.
Daniel Stenberg [Wed, 9 Jan 2002 13:22:03 +0000 (13:22 +0000)]
Cleaned up this example to make it even simpler.

22 years agoCris Bailiff found out that when the SSL session cache was filled, libcurl
Daniel Stenberg [Wed, 9 Jan 2002 09:38:37 +0000 (09:38 +0000)]
Cris Bailiff found out that when the SSL session cache was filled, libcurl
would crash. This corrects the problem.

22 years agoDavid Bentham's updated QNX notification
Daniel Stenberg [Tue, 8 Jan 2002 23:27:42 +0000 (23:27 +0000)]
David Bentham's updated QNX notification

22 years agoadded a missing failf() before returning an error code
Daniel Stenberg [Tue, 8 Jan 2002 23:23:24 +0000 (23:23 +0000)]
added a missing failf() before returning an error code

22 years agothis seems to correct the SSL reading problem introduced when switching
Daniel Stenberg [Tue, 8 Jan 2002 23:19:32 +0000 (23:19 +0000)]
this seems to correct the SSL reading problem introduced when switching
over to non-blocking sockets, but this loops very nastily. We should return
back to the select() and wait there until more data arrives, not just blindly
attempt again and again...

22 years agoI made the write callback create the file the first time it gets called so
Daniel Stenberg [Tue, 8 Jan 2002 13:05:44 +0000 (13:05 +0000)]
I made the write callback create the file the first time it gets called so
that it won't create an empty file if the remote file doesn't exist

22 years agotest case 38 added a few new requirements
Daniel Stenberg [Tue, 8 Jan 2002 09:32:41 +0000 (09:32 +0000)]
test case 38 added a few new requirements

22 years agoupdated
Daniel Stenberg [Tue, 8 Jan 2002 09:32:21 +0000 (09:32 +0000)]
updated

22 years agoadded some tracability
Daniel Stenberg [Tue, 8 Jan 2002 09:32:10 +0000 (09:32 +0000)]
added some tracability

22 years agotest case 38, try a HTTP download resume without the server supporting
Daniel Stenberg [Tue, 8 Jan 2002 09:31:40 +0000 (09:31 +0000)]
test case 38, try a HTTP download resume without the server supporting
ranges

22 years agoanother example source added
Daniel Stenberg [Tue, 8 Jan 2002 08:26:22 +0000 (08:26 +0000)]
another example source added

22 years ago7.9.3 pre-release commit
Daniel Stenberg [Tue, 8 Jan 2002 08:25:44 +0000 (08:25 +0000)]
7.9.3 pre-release commit

22 years agonon-blocking sockets, DNS caching updated, cookies corrected, bool is now
Daniel Stenberg [Tue, 8 Jan 2002 07:22:33 +0000 (07:22 +0000)]
non-blocking sockets, DNS caching updated, cookies corrected, bool is now
unsigned everywhere

22 years agoadded two typecasts to prevent compiler (gcc3) warnings
Daniel Stenberg [Tue, 8 Jan 2002 07:06:07 +0000 (07:06 +0000)]
added two typecasts to prevent compiler (gcc3) warnings

22 years ago1) the dns_cache_timeout should be an integer, not a bool
Sterling Hughes [Tue, 8 Jan 2002 04:30:59 +0000 (04:30 +0000)]
1) the dns_cache_timeout should be an integer, not a bool
2) in the curl_dns_cache_entry structure, timestamp should be
a time_t instead of an integer (although I doubt it matters).

22 years agoAdd support for DNS cache timeouts via the CURLOPT_DNS_CACHE_TIMEOUT option.
Sterling Hughes [Tue, 8 Jan 2002 04:26:47 +0000 (04:26 +0000)]
Add support for DNS cache timeouts via the CURLOPT_DNS_CACHE_TIMEOUT option.

The default cache timeout for this is 60 seconds, which is arbitrary and
completely subject to change :)

22 years agoAs identified in bug report #495290, the last "name=value" pair in a
Daniel Stenberg [Mon, 7 Jan 2002 23:05:36 +0000 (23:05 +0000)]
As identified in bug report #495290, the last "name=value" pair in a
Set-Cookie: line was ignored if they didn't end with a trailing
semicolon. This is indeed wrong syntax, but there are high-profile web sites
out there sending cookies like that so we must make a best-effort to parse
them.

22 years agothe bool typedef is now made unsigned, to make sure it stays that on all
Daniel Stenberg [Mon, 7 Jan 2002 22:47:21 +0000 (22:47 +0000)]
the bool typedef is now made unsigned, to make sure it stays that on all
platforms, unrelated to what they might prefer by default

22 years agoremoved silly check for >=0 of a supposedly unsigned value!
Daniel Stenberg [Mon, 7 Jan 2002 22:46:38 +0000 (22:46 +0000)]
removed silly check for >=0 of a supposedly unsigned value!

22 years agoProbably not necessary, but good practice.
Sterling Hughes [Mon, 7 Jan 2002 20:55:35 +0000 (20:55 +0000)]
Probably not necessary, but good practice.

22 years agoMake cach'ing work with threads now, there are now three cases:
Sterling Hughes [Mon, 7 Jan 2002 20:52:32 +0000 (20:52 +0000)]
Make cach'ing work with threads now, there are now three cases:

    - Use a global dns cache (via setting the tentatively named,
    CURLOPT_DNS_USE_GLOBAL_CACHE option to true)
    - Use a per-handle dns cache, by default
    - Use a pooled dns cache when in the "multi" interface

22 years agoModified to use non-blocking sockets all the time.
Daniel Stenberg [Mon, 7 Jan 2002 18:38:01 +0000 (18:38 +0000)]
Modified to use non-blocking sockets all the time.

22 years agoVC++ makefile, HTTP 204, cookie fix, non-blocking socket for better SSL
Daniel Stenberg [Mon, 7 Jan 2002 16:03:36 +0000 (16:03 +0000)]
VC++ makefile, HTTP 204, cookie fix, non-blocking socket for better SSL
connection timeout

22 years agoadded proper breaks in the switch()
Daniel Stenberg [Mon, 7 Jan 2002 15:24:52 +0000 (15:24 +0000)]
added proper breaks in the switch()

22 years agoAdded David Bentham's notes about QNX and FD_SETSIZE
Daniel Stenberg [Mon, 7 Jan 2002 15:14:01 +0000 (15:14 +0000)]
Added David Bentham's notes about QNX and FD_SETSIZE

22 years agoHTTP response 204 should be treated similar to 304, that is we must not
Daniel Stenberg [Mon, 7 Jan 2002 14:57:18 +0000 (14:57 +0000)]
HTTP response 204 should be treated similar to 304, that is we must not
expect (nor read) any response-body

22 years agoadded precautions to not go insane when two matching cookies end up in the
Daniel Stenberg [Mon, 7 Jan 2002 14:56:15 +0000 (14:56 +0000)]
added precautions to not go insane when two matching cookies end up in the
cookie list, even though they're not supposed to do that...

22 years agoAdd hash and llist to VC dsp file
sm [Fri, 4 Jan 2002 23:48:28 +0000 (23:48 +0000)]
Add hash and llist to VC dsp file

22 years agoAdd hash and llist to VC makefile
sm [Fri, 4 Jan 2002 23:47:07 +0000 (23:47 +0000)]
Add hash and llist to VC makefile

22 years ago-l lists all tests
Daniel Stenberg [Fri, 4 Jan 2002 13:20:17 +0000 (13:20 +0000)]
-l lists all tests

22 years agoThe former -c is "-C -" these days
Daniel Stenberg [Fri, 4 Jan 2002 13:15:07 +0000 (13:15 +0000)]
The former -c is "-C -" these days

22 years agodns cache, ftp response read, 64bit fixes, printf replaces, inet_ntoa_r
Daniel Stenberg [Fri, 4 Jan 2002 09:57:57 +0000 (09:57 +0000)]
dns cache, ftp response read, 64bit fixes, printf replaces, inet_ntoa_r
corrections

22 years agoreplaced printf() => Curl_sendf()
Daniel Stenberg [Fri, 4 Jan 2002 09:53:39 +0000 (09:53 +0000)]
replaced printf() => Curl_sendf()

22 years agoremoved a commented line
Daniel Stenberg [Fri, 4 Jan 2002 09:53:10 +0000 (09:53 +0000)]
removed a commented line

22 years agofixed an inet_ntoa() occurance to use inet_ntoa_r() if it is available.
Daniel Stenberg [Fri, 4 Jan 2002 09:52:44 +0000 (09:52 +0000)]
fixed an inet_ntoa() occurance to use inet_ntoa_r() if it is available.
I also replaced all printf() calls with calls to Curl_failf()

22 years agoan unconditional occurance of inet_ntoa() now uses inet_ntoa_r() on all
Daniel Stenberg [Fri, 4 Jan 2002 09:38:52 +0000 (09:38 +0000)]
an unconditional occurance of inet_ntoa() now uses inet_ntoa_r() on all
platforms that have such a function.
This affects multi-thread running libcurls on IPv4 systems that have VERBOSE
switched on. The previous version was risking that another thread overwrote
the data before it was read out in this thread. There could possibly also
be a slight risk that the data isn't zero terminated for a short while and
thus could cause the thread to crash...

22 years ago#include the local "inet_ntoa_r.h" file if no proto was found in the global
Daniel Stenberg [Fri, 4 Jan 2002 09:35:23 +0000 (09:35 +0000)]
#include the local "inet_ntoa_r.h" file if no proto was found in the global
header directory but the function *is* present!

22 years agoThe buffer in ftp_pasv_verbose(), used for gethostbyaddr_r(), is now defined
Daniel Stenberg [Fri, 4 Jan 2002 09:17:52 +0000 (09:17 +0000)]
The buffer in ftp_pasv_verbose(), used for gethostbyaddr_r(), is now defined
to become properly 8-byte aligned on 64-bit archs. Philip Gladstone reported.

22 years agoThe FTP response lines are now passed to the function callback registered for
Daniel Stenberg [Fri, 4 Jan 2002 09:03:11 +0000 (09:03 +0000)]
The FTP response lines are now passed to the function callback registered for
headers.

22 years agomulti stuff from the multi-dev branch
Daniel Stenberg [Thu, 3 Jan 2002 15:03:57 +0000 (15:03 +0000)]
multi stuff from the multi-dev branch

22 years agomulti interface example/test sources from the multi-dev branch
Daniel Stenberg [Thu, 3 Jan 2002 15:03:14 +0000 (15:03 +0000)]
multi interface example/test sources from the multi-dev branch

22 years agomerged the multi-dev branch back into MAIN again
Daniel Stenberg [Thu, 3 Jan 2002 15:01:22 +0000 (15:01 +0000)]
merged the multi-dev branch back into MAIN again

22 years agoSterling Hughes' provided initial DNS cache source code.
Daniel Stenberg [Thu, 3 Jan 2002 10:22:59 +0000 (10:22 +0000)]
Sterling Hughes' provided initial DNS cache source code.

22 years agominor changes
Daniel Stenberg [Thu, 3 Jan 2002 09:43:17 +0000 (09:43 +0000)]
minor changes

22 years agoadded required software and Guido Neitzer's Mac OS X build instructions
Daniel Stenberg [Thu, 3 Jan 2002 09:12:41 +0000 (09:12 +0000)]
added required software and Guido Neitzer's Mac OS X build instructions

22 years agoadded a little percentage for "ok coverage"
Daniel Stenberg [Thu, 3 Jan 2002 08:22:05 +0000 (08:22 +0000)]
added a little percentage for "ok coverage"

22 years agoChanged how -I/--head works when --include is also used... Test case 104
Daniel Stenberg [Thu, 3 Jan 2002 08:07:29 +0000 (08:07 +0000)]
Changed how -I/--head works when --include is also used... Test case 104
stopped working after the dec-20 fixes that now supports FTP operations to
skip the transfer phase.

22 years agoPhilip Gladstone's fixes
Daniel Stenberg [Thu, 3 Jan 2002 07:23:21 +0000 (07:23 +0000)]
Philip Gladstone's fixes

22 years agopass an 'int' as the third argument to bind()
Daniel Stenberg [Thu, 3 Jan 2002 00:51:33 +0000 (00:51 +0000)]
pass an 'int' as the third argument to bind()

22 years agoPhilip Gladstone's 64-bit sparc native compiler compatibility issues fixed.
Daniel Stenberg [Wed, 2 Jan 2002 10:06:47 +0000 (10:06 +0000)]
Philip Gladstone's 64-bit sparc native compiler compatibility issues fixed.

22 years agothe changes from 1999 is now in CHANGES.1999
Daniel Stenberg [Fri, 21 Dec 2001 09:55:13 +0000 (09:55 +0000)]
the changes from 1999 is now in CHANGES.1999

22 years agomoved the changes from 1999 into its own file
Daniel Stenberg [Fri, 21 Dec 2001 09:54:45 +0000 (09:54 +0000)]
moved the changes from 1999 into its own file

22 years agorewrote 3.9 to be more generic with more languages:
Daniel Stenberg [Fri, 21 Dec 2001 09:20:04 +0000 (09:20 +0000)]
rewrote 3.9 to be more generic with more languages:
"3.9 How do I use curl in my favourite programming language?"

22 years agospell
Daniel Stenberg [Fri, 21 Dec 2001 08:10:34 +0000 (08:10 +0000)]
spell

22 years agorecent fixes
Daniel Stenberg [Fri, 21 Dec 2001 08:02:35 +0000 (08:02 +0000)]
recent fixes

22 years ago*cool* fix by Björn Stenberg, makes proxy transfers work better...! :-)
Daniel Stenberg [Thu, 20 Dec 2001 15:58:22 +0000 (15:58 +0000)]
*cool* fix by Björn Stenberg, makes proxy transfers work better...! :-)

22 years agoIf nobody is set we won't download any FTP file. If include_header is set,
Daniel Stenberg [Thu, 20 Dec 2001 11:22:01 +0000 (11:22 +0000)]
If nobody is set we won't download any FTP file. If include_header is set,
we return a set of headers not more. This enables FTP operations that don't
transfer any data, only perform FTP commands.

22 years agoAdded 4.5.6 "301 Moved Permanently", as a reply to bug report #495215
Daniel Stenberg [Wed, 19 Dec 2001 23:25:04 +0000 (23:25 +0000)]
Added 4.5.6 "301 Moved Permanently", as a reply to bug report #495215

22 years agoGötz Babin-Ebell's contributed "simplessl.c" example source code
Daniel Stenberg [Tue, 18 Dec 2001 10:13:41 +0000 (10:13 +0000)]
Götz Babin-Ebell's contributed "simplessl.c" example source code

22 years agorun automake last
Daniel Stenberg [Tue, 18 Dec 2001 01:00:24 +0000 (01:00 +0000)]
run automake last

22 years agoGötz Babin-Ebell's OpenSSL ENGINE patch
Daniel Stenberg [Mon, 17 Dec 2001 23:01:39 +0000 (23:01 +0000)]
Götz Babin-Ebell's OpenSSL ENGINE patch