platform/upstream/curl.git
23 years agolibcurl can init winsock since 7.8.1
Daniel Stenberg [Thu, 1 Nov 2001 14:51:02 +0000 (14:51 +0000)]
libcurl can init winsock since 7.8.1

23 years agoConnectionExists() now returns FALSE immediately if it finds a connection
Daniel Stenberg [Thu, 1 Nov 2001 13:54:32 +0000 (13:54 +0000)]
ConnectionExists() now returns FALSE immediately if it finds a connection
that is dead, because it can only find one entry anyway and if that is dead
there won't be any other entry that matches

23 years agoadded comments and function headers
Daniel Stenberg [Thu, 1 Nov 2001 12:47:22 +0000 (12:47 +0000)]
added comments and function headers

23 years agoUpdate the byte counters in the loop so that aborted transfers have the
Daniel Stenberg [Thu, 1 Nov 2001 12:18:53 +0000 (12:18 +0000)]
Update the byte counters in the loop so that aborted transfers have the
information as well. Improves debug outputs etc.

23 years agoUse Curl_tvdiff to compare times
Daniel Stenberg [Thu, 1 Nov 2001 12:17:51 +0000 (12:17 +0000)]
Use Curl_tvdiff to compare times

23 years agoless I, more we
Daniel Stenberg [Thu, 1 Nov 2001 09:12:35 +0000 (09:12 +0000)]
less I, more we

23 years agominor mods to make solaris plain 'make' to not die on this
Daniel Stenberg [Thu, 1 Nov 2001 07:27:09 +0000 (07:27 +0000)]
minor mods to make solaris plain 'make' to not die on this

23 years agofixed FTPSENDF for ipv6 compiles
Daniel Stenberg [Wed, 31 Oct 2001 20:59:24 +0000 (20:59 +0000)]
fixed FTPSENDF for ipv6 compiles

23 years agoa bunch
Daniel Stenberg [Wed, 31 Oct 2001 20:54:21 +0000 (20:54 +0000)]
a bunch

23 years agoRemoved the SocketIsDead() stuff for SSL again as it doesn't work. We must
Daniel Stenberg [Wed, 31 Oct 2001 15:14:52 +0000 (15:14 +0000)]
Removed the SocketIsDead() stuff for SSL again as it doesn't work. We must
rely on the new go-ahead-and-try mechanism that I just added to Transfer()

23 years agoIf Curl_do() fails with CURLE_WRITE_ERROR on a re-used connection, this
Daniel Stenberg [Wed, 31 Oct 2001 15:13:19 +0000 (15:13 +0000)]
If Curl_do() fails with CURLE_WRITE_ERROR on a re-used connection, this
new logic can retry the same operation on a new connection!

23 years agoCurl_sendf now returns a CURLcode
Daniel Stenberg [Wed, 31 Oct 2001 15:08:16 +0000 (15:08 +0000)]
Curl_sendf now returns a CURLcode

23 years agoreturn type cleanup
Daniel Stenberg [Wed, 31 Oct 2001 15:07:45 +0000 (15:07 +0000)]
return type cleanup

23 years agocheck Curl_ftpsendf return codes
Daniel Stenberg [Wed, 31 Oct 2001 15:06:38 +0000 (15:06 +0000)]
check Curl_ftpsendf return codes

23 years agoAdded better checking of return codes when we send data to sockets/connections
Daniel Stenberg [Wed, 31 Oct 2001 14:57:00 +0000 (14:57 +0000)]
Added better checking of return codes when we send data to sockets/connections

23 years agomajor commit, now we check the return code on every invoke of Curl_ftpsendf
Daniel Stenberg [Wed, 31 Oct 2001 14:56:12 +0000 (14:56 +0000)]
major commit, now we check the return code on every invoke of Curl_ftpsendf
- which now is made using a macro named FTPSENDF. I turned it all caps just
to make it more visible that it is in fact a macro.

23 years agocheck return code when issuing the request
Daniel Stenberg [Wed, 31 Oct 2001 14:48:10 +0000 (14:48 +0000)]
check return code when issuing the request

23 years agoadded typecasts to make the timers calculate with doubles, not longs as they
Daniel Stenberg [Wed, 31 Oct 2001 14:45:47 +0000 (14:45 +0000)]
added typecasts to make the timers calculate with doubles, not longs as they
accidentally did after the Curl_tvdiff() interface change

23 years agoadded some -c talk, spell checked
Daniel Stenberg [Wed, 31 Oct 2001 13:42:38 +0000 (13:42 +0000)]
added some -c talk, spell checked

23 years agono need for mumbojumbo
Daniel Stenberg [Wed, 31 Oct 2001 12:48:18 +0000 (12:48 +0000)]
no need for mumbojumbo

23 years agoadded cool.haxx.se as an official mirror site
Daniel Stenberg [Wed, 31 Oct 2001 10:19:16 +0000 (10:19 +0000)]
added cool.haxx.se as an official mirror site

23 years agononblock => Curl_nonblock, remade the check for a live SSL connection (again)
Daniel Stenberg [Wed, 31 Oct 2001 08:44:11 +0000 (08:44 +0000)]
nonblock => Curl_nonblock, remade the check for a live SSL connection (again)

23 years agoAdded -0/--http1.0
Daniel Stenberg [Tue, 30 Oct 2001 15:39:11 +0000 (15:39 +0000)]
Added -0/--http1.0

23 years agoremoved the 'in documentation' part, as I've expressed in public before
Daniel Stenberg [Tue, 30 Oct 2001 15:32:48 +0000 (15:32 +0000)]
removed the 'in documentation' part, as I've expressed in public before

23 years agoAdded an additional SSL check for a dead socket before we re-use an SSL
Daniel Stenberg [Tue, 30 Oct 2001 15:21:45 +0000 (15:21 +0000)]
Added an additional SSL check for a dead socket before we re-use an SSL
connection. The simple socket-check is not enough in these cases.

23 years agoprevent strdup()ing NULL -- Paul Harrington's report
Daniel Stenberg [Tue, 30 Oct 2001 12:08:17 +0000 (12:08 +0000)]
prevent strdup()ing NULL -- Paul Harrington's report

23 years agoCorrected the -T description
Daniel Stenberg [Tue, 30 Oct 2001 08:09:57 +0000 (08:09 +0000)]
Corrected the -T description

23 years agoremoved silly old -t usage from here, added some blurb about the "new" -t
Daniel Stenberg [Tue, 30 Oct 2001 08:09:08 +0000 (08:09 +0000)]
removed silly old -t usage from here, added some blurb about the "new" -t
that sets telnet options

23 years agoKevin Roth updates
Daniel Stenberg [Mon, 29 Oct 2001 22:17:19 +0000 (22:17 +0000)]
Kevin Roth updates

23 years agocorrected return code, general cleanup
Daniel Stenberg [Mon, 29 Oct 2001 13:41:16 +0000 (13:41 +0000)]
corrected return code, general cleanup

23 years agoadded curl_formadd
Daniel Stenberg [Mon, 29 Oct 2001 13:28:44 +0000 (13:28 +0000)]
added curl_formadd

23 years agominor fix to support multiple files in one formadd() call
Daniel Stenberg [Mon, 29 Oct 2001 13:21:25 +0000 (13:21 +0000)]
minor fix to support multiple files in one formadd() call

23 years ago29 October fixes
Daniel Stenberg [Mon, 29 Oct 2001 10:46:20 +0000 (10:46 +0000)]
29 October fixes

23 years agoKevin Roth's cygwin package fixes
Daniel Stenberg [Mon, 29 Oct 2001 10:32:39 +0000 (10:32 +0000)]
Kevin Roth's cygwin package fixes

23 years agoCygwin moved into the win32 drawer
Daniel Stenberg [Mon, 29 Oct 2001 10:31:52 +0000 (10:31 +0000)]
Cygwin moved into the win32 drawer

23 years agofixed conn->name error on connection re-use and enlarged the 'gname' array
Daniel Stenberg [Mon, 29 Oct 2001 10:10:21 +0000 (10:10 +0000)]
fixed conn->name error on connection re-use and enlarged the 'gname' array
to hold 512 bytes (for user+password+hostname)

23 years agoSM's waitconnect return code fix!
Daniel Stenberg [Mon, 29 Oct 2001 07:49:57 +0000 (07:49 +0000)]
SM's waitconnect return code fix!

23 years agochanged the Location: to match one Paul Harrington reports a problem with
Daniel Stenberg [Fri, 26 Oct 2001 12:36:25 +0000 (12:36 +0000)]
changed the Location: to match one Paul Harrington reports a problem with

23 years agoldap fix, test28 added
Daniel Stenberg [Fri, 26 Oct 2001 11:34:02 +0000 (11:34 +0000)]
ldap fix, test28 added

23 years agomade 'timespent' a double, which makes more accurate calculations for quick
Daniel Stenberg [Fri, 26 Oct 2001 11:25:03 +0000 (11:25 +0000)]
made 'timespent' a double, which makes more accurate calculations for quick
downloads

23 years agotest28 added for "Location: extraspace" test
Daniel Stenberg [Fri, 26 Oct 2001 11:01:33 +0000 (11:01 +0000)]
test28 added for "Location:   extraspace" test

23 years agobug report #474568 -
Daniel Stenberg [Thu, 25 Oct 2001 08:28:29 +0000 (08:28 +0000)]
bug report #474568 -
We need to set "no further data to download" before the Curl_ldap() function
returns, as otherwise it'll hang on that assumed transfer.

23 years agoadded "s390 Linux" as a platform that curl was compiled for, and I also sorted
Daniel Stenberg [Wed, 24 Oct 2001 14:16:57 +0000 (14:16 +0000)]
added "s390 Linux" as a platform that curl was compiled for, and I also sorted
the list of machines

23 years agoadded a section about cross compiling that Jim Duey wrote down for us
Daniel Stenberg [Wed, 24 Oct 2001 11:54:42 +0000 (11:54 +0000)]
added a section about cross compiling that Jim Duey wrote down for us

23 years agolots and lots
Daniel Stenberg [Wed, 24 Oct 2001 11:44:18 +0000 (11:44 +0000)]
lots and lots

23 years agotest case 27 added, to make sure cookie replacing don't leak anything
Daniel Stenberg [Wed, 24 Oct 2001 11:39:48 +0000 (11:39 +0000)]
test case 27 added, to make sure cookie replacing don't leak anything

23 years agonow reports the CORRECT pid on demand
Daniel Stenberg [Wed, 24 Oct 2001 11:39:15 +0000 (11:39 +0000)]
now reports the CORRECT pid on demand

23 years agoT. Bharath found this memory leak. It occurs when we replace an internally
Daniel Stenberg [Wed, 24 Oct 2001 11:36:55 +0000 (11:36 +0000)]
T. Bharath found this memory leak. It occurs when we replace an internally
already existing cookie with a new one.

23 years agopack_hostent() now aligns the data properly on 64bit boundaries to work on
Daniel Stenberg [Tue, 23 Oct 2001 12:11:43 +0000 (12:11 +0000)]
pack_hostent() now aligns the data properly on 64bit boundaries to work on
more CPU architectures

23 years agogrammar grammar!
Daniel Stenberg [Tue, 23 Oct 2001 10:12:28 +0000 (10:12 +0000)]
grammar grammar!

23 years agoadded "3.12 Why do FTP specific features over HTTP proxy fails?"
Daniel Stenberg [Tue, 23 Oct 2001 10:12:00 +0000 (10:12 +0000)]
added "3.12 Why do FTP specific features over HTTP proxy fails?"

23 years agoadded AC_PREREQ(2.50) to prevent autoconf mistakes
Daniel Stenberg [Tue, 23 Oct 2001 07:54:16 +0000 (07:54 +0000)]
added AC_PREREQ(2.50) to prevent autoconf mistakes

23 years agoAn SGI (IRIX) compiler doesn't like indended #-instructions, so they're all
Daniel Stenberg [Mon, 22 Oct 2001 22:15:50 +0000 (22:15 +0000)]
An SGI (IRIX) compiler doesn't like indended #-instructions, so they're all
in column zero now!

23 years agomake sure the connect can't return OK but return a NULL as addr
Daniel Stenberg [Mon, 22 Oct 2001 12:52:25 +0000 (12:52 +0000)]
make sure the connect can't return OK but return a NULL as addr

23 years ago2000 => 2001
Daniel Stenberg [Mon, 22 Oct 2001 06:39:47 +0000 (06:39 +0000)]
2000 => 2001

23 years agorephrased the WRITEFUNCTION description a bit
Daniel Stenberg [Mon, 22 Oct 2001 06:35:19 +0000 (06:35 +0000)]
rephrased the WRITEFUNCTION description a bit

23 years agofailed transfers will now close the connection
Daniel Stenberg [Mon, 22 Oct 2001 06:34:14 +0000 (06:34 +0000)]
failed transfers will now close the connection

23 years agoadded cygwin package makefile
Daniel Stenberg [Mon, 22 Oct 2001 06:32:54 +0000 (06:32 +0000)]
added cygwin package makefile

23 years agoCygwin files
Daniel Stenberg [Mon, 22 Oct 2001 06:27:12 +0000 (06:27 +0000)]
Cygwin files

23 years agoKevin Roth's cygwin fixes
Daniel Stenberg [Mon, 22 Oct 2001 06:26:30 +0000 (06:26 +0000)]
Kevin Roth's cygwin fixes

23 years agoA Kevin Roth patch. -- It's a post 1.4.2 patch that will become part of
Daniel Stenberg [Mon, 22 Oct 2001 06:08:09 +0000 (06:08 +0000)]
A Kevin Roth patch. -- It's a post 1.4.2 patch that will become part of
libtool 1.4.3, and it's required to allow "make install" to function properly
on cygwin.

23 years agonew return code: CURLE_GOT_NOTHING
Daniel Stenberg [Fri, 19 Oct 2001 11:59:04 +0000 (11:59 +0000)]
new return code: CURLE_GOT_NOTHING

23 years agonow counts header size return from server and if nothing is returned from a
Daniel Stenberg [Fri, 19 Oct 2001 11:58:32 +0000 (11:58 +0000)]
now counts header size return from server and if nothing is returned from a
HTTP server we return error

23 years agocurl_easy_duphandle() now properly clones the cookie option
Daniel Stenberg [Fri, 19 Oct 2001 11:57:50 +0000 (11:57 +0000)]
curl_easy_duphandle() now properly clones the cookie option
- patch by T. Bharath

23 years agoadded test 37
Daniel Stenberg [Fri, 19 Oct 2001 11:56:23 +0000 (11:56 +0000)]
added test 37

23 years agoCURLOPT_FAILONERROR now only returns error if the HTTP code is 400 or above
Daniel Stenberg [Fri, 19 Oct 2001 06:27:24 +0000 (06:27 +0000)]
CURLOPT_FAILONERROR now only returns error if the HTTP code is 400 or above
unconditionalliy. Previously, the code check was for >= 300 unless follow-
location was enabled...

23 years agothe malloc debug system only logs data if the logfile FILE * is set, which
Daniel Stenberg [Wed, 17 Oct 2001 12:33:35 +0000 (12:33 +0000)]
the malloc debug system only logs data if the logfile FILE * is set, which
makes it easier to disable debug output when built with debug functions

23 years agocall Curl_done() in Curl_perform() after Transfer() was called, even it it
Daniel Stenberg [Wed, 17 Oct 2001 12:24:51 +0000 (12:24 +0000)]
call Curl_done() in Curl_perform() after Transfer() was called, even it it
returned an error as there might be stuff in there we must free/cleanup.
This fixes the memory leak Yanick Pelletier posted about 16 Oct 2001

23 years agodon't use 'strict' anymore, as it doesn't work good with the cygwin fixes
Daniel Stenberg [Wed, 17 Oct 2001 11:51:02 +0000 (11:51 +0000)]
don't use 'strict' anymore, as it doesn't work good with the cygwin fixes
also, always kill/restart the HTTP server on startup if it is our test server

23 years agoKevin Roth's cygwin adjustment
Daniel Stenberg [Tue, 16 Oct 2001 07:59:43 +0000 (07:59 +0000)]
Kevin Roth's cygwin adjustment

23 years agoadded AC_LIBTOOL_WIN32_DLL for cygwin setup issues
Daniel Stenberg [Tue, 16 Oct 2001 07:58:41 +0000 (07:58 +0000)]
added AC_LIBTOOL_WIN32_DLL for cygwin setup issues

23 years agoCurl_tvdiff() now returns a millisecond diff, no double like before
Daniel Stenberg [Fri, 12 Oct 2001 12:32:20 +0000 (12:32 +0000)]
Curl_tvdiff() now returns a millisecond diff, no double like before

23 years agoprogress meter fixes
Daniel Stenberg [Fri, 12 Oct 2001 12:31:43 +0000 (12:31 +0000)]
progress meter fixes

23 years agoextensively commented source code, parts refreshened, the "current speed" is
Daniel Stenberg [Fri, 12 Oct 2001 12:31:06 +0000 (12:31 +0000)]
extensively commented source code, parts refreshened, the "current speed" is
now more accurate since it is based on actual spent time without the
assumptions from before

23 years agobetter check for absolute URL redirects, adjusted to new Curl_tvdiff() proto
Daniel Stenberg [Fri, 12 Oct 2001 12:30:06 +0000 (12:30 +0000)]
better check for absolute URL redirects, adjusted to new Curl_tvdiff() proto

23 years agolooks nicer and is better compatible with older vim versions
Sterling Hughes [Thu, 11 Oct 2001 09:32:19 +0000 (09:32 +0000)]
looks nicer and is better compatible with older vim versions

23 years agocleanup on language, content and facts
Daniel Stenberg [Thu, 11 Oct 2001 09:07:46 +0000 (09:07 +0000)]
cleanup on language, content and facts

23 years agogetservbyname is not used by libcurl, don't check for it
Daniel Stenberg [Thu, 11 Oct 2001 07:41:52 +0000 (07:41 +0000)]
getservbyname is not used by libcurl, don't check for it

23 years agoremoved WRITEINFO from here, it's not been supported since 7.4...
Daniel Stenberg [Thu, 11 Oct 2001 06:24:27 +0000 (06:24 +0000)]
removed WRITEINFO from here, it's not been supported since 7.4...

23 years agocheckserver() bugged, Kevin Roth detected and fixed
Daniel Stenberg [Wed, 10 Oct 2001 22:04:42 +0000 (22:04 +0000)]
checkserver() bugged, Kevin Roth detected and fixed

23 years agoKevin Roth's fixes to make tests work on cygwin
Daniel Stenberg [Wed, 10 Oct 2001 21:59:10 +0000 (21:59 +0000)]
Kevin Roth's fixes to make tests work on cygwin

23 years agoCURLOPT_WRITEFUNCTION description corrected
Daniel Stenberg [Wed, 10 Oct 2001 13:11:24 +0000 (13:11 +0000)]
CURLOPT_WRITEFUNCTION description corrected

23 years agocookiejar now enables the cookie engine
Daniel Stenberg [Wed, 10 Oct 2001 12:48:32 +0000 (12:48 +0000)]
cookiejar now enables the cookie engine

23 years agohm
Daniel Stenberg [Tue, 9 Oct 2001 12:04:33 +0000 (12:04 +0000)]
hm

23 years agoadded chunked encoding tests
Daniel Stenberg [Tue, 9 Oct 2001 12:03:52 +0000 (12:03 +0000)]
added chunked encoding tests

23 years agoadded test 47 - enforced http 1.0 request
Daniel Stenberg [Tue, 9 Oct 2001 11:34:49 +0000 (11:34 +0000)]
added test 47 - enforced http 1.0 request

23 years agoresolve problem fixed, memory leak with ipv6 gone, configure improved,
Daniel Stenberg [Tue, 9 Oct 2001 06:57:17 +0000 (06:57 +0000)]
resolve problem fixed, memory leak with ipv6 gone, configure improved,
MSVC++ project files fixed, connecthost() compiler errors, ignore SIGPIPE,
support CURLOPT_HTTP_VERSION etc...

23 years agoNew: CURLOPT_HTTP_VERSION
Daniel Stenberg [Tue, 9 Oct 2001 06:53:53 +0000 (06:53 +0000)]
New: CURLOPT_HTTP_VERSION
Renamed: the TimeCond type to curl_TimeCond

23 years agoAdded -0/--http1.0 to enforce HTTP 1.0 requests
Daniel Stenberg [Tue, 9 Oct 2001 06:53:11 +0000 (06:53 +0000)]
Added -0/--http1.0 to enforce HTTP 1.0 requests

23 years agoadded the option CURLOPT_HTTP_VERSION that can specify which HTTP version
Daniel Stenberg [Tue, 9 Oct 2001 06:52:37 +0000 (06:52 +0000)]
added the option CURLOPT_HTTP_VERSION that can specify which HTTP version
libcurl should use in its request

23 years agoignore SIGPIPE, as that can be actually get sent when we write to a socket
Daniel Stenberg [Tue, 9 Oct 2001 06:23:26 +0000 (06:23 +0000)]
ignore SIGPIPE, as that can be actually get sent when we write to a socket

23 years agoupdated the cookiejar comment
Daniel Stenberg [Mon, 8 Oct 2001 11:07:06 +0000 (11:07 +0000)]
updated the cookiejar comment

23 years agohm, an unknown error from bind() when binding the outgoing socket would
Daniel Stenberg [Mon, 8 Oct 2001 06:56:00 +0000 (06:56 +0000)]
hm, an unknown error from bind() when binding the outgoing socket would
failf("%d") without the error as argument... it would always make a weird
number get output

23 years agocorrected cookie-jar comment
Daniel Stenberg [Mon, 8 Oct 2001 06:43:22 +0000 (06:43 +0000)]
corrected cookie-jar comment

23 years agousing a HTTP proxy will disable some protocol-specific features that non-
Daniel Stenberg [Fri, 5 Oct 2001 07:30:07 +0000 (07:30 +0000)]
using a HTTP proxy will disable some protocol-specific features that non-
HTTP procotols may allow

23 years agoSM's patch applied, we should not use arguments or variables that have the
Daniel Stenberg [Fri, 5 Oct 2001 06:05:56 +0000 (06:05 +0000)]
SM's patch applied, we should not use arguments or variables that have the
same name as common functions...

23 years agoVC ID project workspace - fixes compile under win32
sm [Fri, 5 Oct 2001 02:30:27 +0000 (02:30 +0000)]
VC ID project workspace - fixes compile under win32

23 years agoVC ID project now uses ws2_32.lib - fixes compile under win32
sm [Fri, 5 Oct 2001 02:29:47 +0000 (02:29 +0000)]
VC ID project now uses ws2_32.lib - fixes compile under win32

23 years agoMakefile.vc6 changed to include connect.c
sm [Fri, 5 Oct 2001 02:27:26 +0000 (02:27 +0000)]
Makefile.vc6 changed to include connect.c

23 years agoAlbert Chin's improved gethostbyname_r() tests
Daniel Stenberg [Thu, 4 Oct 2001 14:05:12 +0000 (14:05 +0000)]
Albert Chin's improved gethostbyname_r() tests