Daniel Stenberg
701509d322
Jeff Lawson fixed a few problems with connection re-use that remained when
...
you set CURLOPT_PROXY to "".
2002-10-10 08:00:49 +00:00
Daniel Stenberg
c3cc616264
Junk data could get inserted when saving/getting HTTP headers, as discovered
...
by Craig Davison. Now we deal with the 'nread' variable correctly between
each header line.
2002-10-09 13:03:51 +00:00
Daniel Stenberg
91b84b89e4
failf() now sends the text to the debug function callback
2002-10-08 16:10:37 +00:00
Daniel Stenberg
512db1bc54
Added timeout support for the non-windows version.
2002-10-08 13:03:26 +00:00
Daniel Stenberg
9b296e65bd
Following locations properly, if told to do so.
2002-10-07 13:38:59 +00:00
Daniel Stenberg
5f649a1649
Move the URL concat code to Curl_follow(), and added a proto for that
...
function. For Location: following.
2002-10-07 13:38:34 +00:00
Daniel Stenberg
daea056210
Kevin Roth pointed out that 'make install' failed if built outside the
...
sourcedir if we're not using $(srcdir) properly.
2002-10-07 09:04:50 +00:00
Daniel Stenberg
cfa0054077
The -no-undefined flag is CRUCIAL for this to build fine on Cygwin. If we
...
find a case in which we need to remove this flag, we should most likely
write a configure check that detects when this flag is needed and when its
not.
2002-10-04 14:26:10 +00:00
Daniel Stenberg
3d5820648b
as Ralph Mitchell pointed out, the Location: following code needs some
...
basic ./ and ../ strip-off understanding, and this change introduces with.
test cases 49 - 52 test this.
2002-10-04 14:15:01 +00:00
Daniel Stenberg
dc9e415602
get an argument and add a 'age' field to the struct
2002-09-30 19:51:05 +00:00
Daniel Stenberg
84fa12c885
Cris Bailiff found this flaw, gethostbyname_r() on linux returns 0 even
...
when it can't lookup the name (at least in some cases) and thus we need
to make an extra check to detect failures.
2002-09-30 08:07:16 +00:00
Daniel Stenberg
0ff89b9c3c
Allow a "" proxy explicitly set dont-use-proxy, i.e don't even check the
...
environment variables or anything. Setting it to NULL disables proxy as well,
but allows the environment variables to kick in and be used.
2002-09-27 09:49:40 +00:00
Daniel Stenberg
9247daf953
enhanced curl_version_info
2002-09-26 13:03:22 +00:00
Daniel Stenberg
1ee1f5f427
extended curl_version_info() with more info on related sub-libraries
2002-09-25 15:38:48 +00:00
Daniel Stenberg
969217c9d9
make sure we free rangeline before we re-assign it to a new allocated
...
memory as otherwise we (might) leak memory
2002-09-25 12:47:38 +00:00
Daniel Stenberg
6883f0c49f
Walter J. Mack added curl_free
2002-09-25 12:26:07 +00:00
Daniel Stenberg
ec9acbcda7
Andrs Garca found out that Curl_protocol_connect() could return an
...
uninitialized variable.
2002-09-25 11:27:06 +00:00
Daniel Stenberg
c0460660d5
Wez Furlong's curl_version_info() function added, still needs some
...
adjustments and possibly some improvments to feature all those things we
could possibly want from this.
2002-09-25 07:08:41 +00:00
Daniel Stenberg
5b3069e265
spell fix comment
2002-09-23 12:55:36 +00:00
Daniel Stenberg
b466924717
removed use of extra unneeded variable
2002-09-23 12:47:18 +00:00
Daniel Stenberg
cbc0f65fa3
Dolbneff A.V and Spiridonoff A.V made the file:// code work with resumes
...
in the same style other code does.
2002-09-23 12:46:23 +00:00
Daniel Stenberg
35089a4289
properly disconnect failed connections
2002-09-23 12:44:45 +00:00
Daniel Stenberg
aef3131e92
Craig Markwardt made the "struct hostent_data" get cleared too, as is
...
needed on Tru64 (or something).
2002-09-20 14:40:14 +00:00
Daniel Stenberg
fb5d267bd0
a follow-up fix to the previous fix for HTTP servers that don't reply *any*
...
headers at all
2002-09-16 14:02:08 +00:00
Daniel Stenberg
c19844a0a3
better deal with HTTP(S) servers that respond with no headers at all, test
...
case 306 added to verify that we do right
2002-09-13 12:40:36 +00:00
Daniel Stenberg
cac5251a98
Lukasz Czekierda correctly pointed out that curl used a bad Host: header
...
when talking to a IPv6-server using IPv6 IP address only.
2002-09-11 10:32:37 +00:00
Daniel Stenberg
efca2943a0
minor indent change
2002-09-09 11:23:34 +00:00
Daniel Stenberg
371da7132f
remove redundant comment
2002-09-09 11:23:13 +00:00
Joern Hartroth
b2563b9f9f
Added content_encoding files.
2002-09-06 22:05:36 +00:00
sm
4a7cf65064
Added multi.c to curllib.dsp to fix win32 build
2002-09-04 15:07:28 +00:00
Daniel Stenberg
ba4e69bebc
updated source code boilerplate/header
2002-09-03 11:52:59 +00:00
Daniel Stenberg
955da86a3e
fixed the dist-hook and added the missing header file
2002-09-03 11:26:07 +00:00
Daniel Stenberg
64bbe9dfaf
James Gallagher's Content-Encoding work
2002-09-02 22:31:18 +00:00
Daniel Stenberg
2e8a9416af
ca bundle to use
2002-09-02 22:29:48 +00:00
Daniel Stenberg
5dd40bd0bb
adjusted to more HTTP-strict version strings and to offer LIBZ info
2002-09-02 21:59:31 +00:00
Daniel Stenberg
56c43604d0
if verifypeer is enabled but nether CAfile nor CApath is, then don't try
...
to load "verify_locations"
2002-08-30 12:07:42 +00:00
Daniel Stenberg
7438c378be
prevent compiler warning
2002-08-30 11:10:50 +00:00
Daniel Stenberg
0e0caf7c06
CURLE_SSL_INSECURE is removed again and so is CURLOPT_SSL_INSECURE, we
...
proceed fine with the already existing options, just having a different
internal library default for capath.
2002-08-30 11:09:49 +00:00
Daniel Stenberg
5644f4a295
support DESTDIR for the bundle
2002-08-30 11:02:49 +00:00
Daniel Stenberg
8aa3f14303
SOCKS5 support added (contributed by a still unnamed person). Not properly
...
working for "IPv6 enabled" libcurls yet, but should be pretty easy for
someone to adjust.
2002-08-30 09:20:11 +00:00
Daniel Stenberg
ac285b453e
ca-bundle stuff for configure and generated header file
2002-08-30 07:50:59 +00:00
Daniel Stenberg
7140baae72
remove the data and conn fields from the Curl_transfer_keeper struct, they
...
weren't used anyway and mostly caused confusion
2002-08-29 06:09:21 +00:00
Daniel Stenberg
27a2e590cd
SSL_INSECURE support and usage added
2002-08-26 23:13:25 +00:00
Daniel Stenberg
6561ec524b
don't attempt to ftp_cwd() on a NULL path
2002-08-26 22:00:01 +00:00
Daniel Stenberg
982c5460f0
Andrew Francis removed the need for/use of MSVC pragmas
2002-08-26 17:20:29 +00:00
Daniel Stenberg
74be55a477
Markus F.X.J. Oberhumer's added comment
2002-08-22 19:38:50 +00:00
Daniel Stenberg
394832c2d6
Markus Oberhumer improved an out-of-memory check
...
I reformatted some functions using a different indent than the rest
of the file.
2002-08-22 19:38:17 +00:00
Daniel Stenberg
03e4a8214c
allow undefined symbols!
2002-08-22 14:28:15 +00:00
Daniel Stenberg
a72d789b08
Added three more pragmas for MSVC++ compiles.
...
We *really* need these sorted out. I'd prefer to have them all removed and
the actual code corrected instead of just diabling the warnings and pretending
that they don't exist.
2002-08-20 11:46:48 +00:00
Daniel Stenberg
87ad7ace18
prevent compiler warnings
2002-08-20 11:43:31 +00:00
Daniel Stenberg
35153eb524
windows has stdlib.h
2002-08-20 11:42:35 +00:00
Daniel Stenberg
6dfe0ec31e
Sterling Hughes brings the share interface
2002-08-13 14:20:47 +00:00
Daniel Stenberg
30b7a9f172
fixed a Curl_connecthost() bug, we should default to set connected to false
2002-08-12 12:01:57 +00:00
Daniel Stenberg
cb895ec335
Initial fix to make the multi interface return control while waiting for
...
the initial connect to "come through".
This should work fine for connect and for FTP-PASV connects. Needs massive
testing.
2002-08-12 09:43:20 +00:00
Daniel Stenberg
c88036405f
ignore generated files
2002-08-08 23:11:26 +00:00
Daniel Stenberg
4cf953678d
Markus F.X.J. Oberhumer's CURLOPT_NOSIGNAL patch
2002-08-08 22:52:50 +00:00
Daniel Stenberg
ca5678c8c1
attempted hpux fix for resolves
2002-08-08 22:44:43 +00:00
Daniel Stenberg
312bcafd05
ignore all .in files
2002-08-08 04:44:41 +00:00
Daniel Stenberg
108cb14d1f
Make SessionHandle keep record if it is used with the multi interface or
...
the easy interface, it CANNOT be used by a mixture.
2002-08-05 17:04:39 +00:00
Daniel Stenberg
215c445583
re-added the RFC2732-parser that was lost for some reason during the flow
...
of time!
2002-08-05 16:50:55 +00:00
Joern Hartroth
94eeeba79a
Added multi interface functions to DLL definitions.
2002-08-03 16:38:28 +00:00
Daniel Stenberg
ecd29a289a
corrected some warnings
2002-08-01 14:30:42 +00:00
Daniel Stenberg
e7d0af72e3
Changed the PORT command to pick a better default IP address if "-" is used.
...
It now uses the local IP adress of the control connection.
2002-08-01 14:25:12 +00:00
Daniel Stenberg
264a9bc6ed
Removed checks for if set.fpasswd is NULL, as we prevent users from setting
...
it to NULL and then use the internal default instead. It will always be
a function to call.
2002-07-29 22:45:50 +00:00
Daniel Stenberg
7313501e30
fixed the Curl_cookie_add() invoke to not assume a space after the colon
2002-07-29 22:23:55 +00:00
Daniel Stenberg
d8b2c819e7
properly skip white spaces on Set-Cookie: header lines
2002-07-29 22:22:49 +00:00
Daniel Stenberg
a46e2e9900
link with winmm.lib too
2002-07-29 14:20:53 +00:00
Daniel Stenberg
14f0dd2dd0
use stderr to present the prompt to, make sure to close the fopen()ed
...
file handle
2002-07-29 14:15:14 +00:00
Daniel Stenberg
c051438fa1
Added multi.[co] to the build
2002-07-29 11:07:26 +00:00
Daniel Stenberg
7f8ad34ba2
Glen Nakamura made his fix look even better!
2002-06-26 15:39:23 +00:00
Daniel Stenberg
a33e89b44a
Glen Nakamura's patch for Curl_getaddrinfo().
2002-06-26 08:03:46 +00:00
Daniel Stenberg
2f8e7f56b3
ignore '+' in URLs, generate only %-codes
2002-06-26 07:15:31 +00:00
Daniel Stenberg
2443e1f38c
T. Bharath fixed his mm lib timer resolution fix
2002-06-26 06:47:18 +00:00
Daniel Stenberg
e54e0c7877
CURLOPT_BUFFERSIZE allows an application to set a prefered buffer size
...
for receiving data from the network. It is meant as a hint, not as a forced
limit.
2002-06-15 21:00:54 +00:00
Daniel Stenberg
2b34d4e1f7
- Yarram Sunil found out that the SocketIsDead() function performed a lot
...
faster on Windows when removing the 1 microsecond timeout.
2002-06-14 12:05:20 +00:00
Daniel Stenberg
c7aa095fac
Hanno L. Kranzhoff fixed them
2002-06-14 09:36:09 +00:00
Daniel Stenberg
93f1784526
Remade the FTP not-check status line and not-attempt-to-read-status-line
...
variables, conditions and things.
2002-06-14 06:57:00 +00:00
Daniel Stenberg
559dc503c2
Tom Mattison's report found out, and this is the fix that should prevent
...
FTP from closing the connections a little too often!
2002-06-13 22:22:59 +00:00
Daniel Stenberg
3c63e1d8d9
Added 'dont_check' to be set during an FTP operation if the final status
...
message is supposed to be ignored.
2002-06-13 09:21:08 +00:00
Daniel Stenberg
cae555c977
when no FTP transfer was done, don't attempt to read the download transfer
...
thing. The 'resumed' flag is also causing confusions. I'll deal with that
tomorrow.
2002-06-12 22:05:28 +00:00
Daniel Stenberg
407583e8e2
Moved the secondarysocket cleanup. The 'conn' struct may have been cleared
...
already at that other place.
2002-06-12 22:04:25 +00:00
Daniel Stenberg
131645dc31
Chris Combes added CURLFORM_BUFFER, CURLFORM_BUFFERPTR, CURLFORM_BUFFERLENGTH
2002-06-12 21:40:59 +00:00
Daniel Stenberg
73cc1742af
HAVE_SIGSETJMP
2002-06-12 17:56:22 +00:00
Daniel Stenberg
87afd7686f
added a connect failure error message that might get empty otherwise
2002-06-12 09:48:26 +00:00
Daniel Stenberg
8ce10b5dfa
Jrn fixes for 7.9.8 build
2002-06-12 09:18:37 +00:00
Daniel Stenberg
20f85b94df
kris@freebsd.org fixed a bad format string
2002-06-12 07:45:11 +00:00
Daniel Stenberg
17b784381e
kris@freebsd.org fixed a few bad format strings
2002-06-12 07:44:22 +00:00
Daniel Stenberg
38c994a7ae
put #ifdefs around the sigjmp_buf declaration too, as it should be
2002-06-11 15:47:01 +00:00
Daniel Stenberg
85e2e96fb6
corrected the signal handler
2002-06-11 15:44:27 +00:00
Daniel Stenberg
3c49b405de
Now uses sigsetjmp() and siglongjmp() to bail out from slow name lookups in
...
case a timeout is set. This seems to work. God knows if it is good enough
or what kind of side-effects we introduce here and now.
I'll close my eyes and cross my fingers. Hard.
2002-06-11 15:10:18 +00:00
Daniel Stenberg
e9f1c12f0f
removed accidentally added debug-code!
2002-06-11 14:10:32 +00:00
Daniel Stenberg
4fe252847c
ftp range downloads make us ignore the final status message as the server
...
will most likely treat the download as failed as we might abort it
pre-maturely
2002-06-11 12:35:03 +00:00
Daniel Stenberg
08ef208fb7
added disable-[protocol] support, largely provided by Miklos Nemeth
2002-06-11 11:13:01 +00:00
Daniel Stenberg
25dc520163
added multi.obj
2002-06-11 11:11:06 +00:00
Daniel Stenberg
fc37ef9e4b
make sure data->set.postfields is non-NULL before doing strlen() on the
...
pointer. Bugs item #566835 .
2002-06-11 07:20:21 +00:00
Daniel Stenberg
11ba367fc9
getaddrinfo() failures now show port number too in informational output
2002-06-10 13:26:02 +00:00
Daniel Stenberg
78473f71eb
added a missing failf() for certain connect failures
2002-06-10 13:25:03 +00:00
Daniel Stenberg
8b77f40f99
This fix MIGHT make us build nicely with OpenSSL 0.9.7. This fix is based
...
on a patch from Jacob Meuser, input from Gtz Babin-Ebell and my own
browsing of the latest include files.
2002-06-10 12:38:10 +00:00
Daniel Stenberg
d866716565
Gautam Mani found a socket descriptor leak that happened when FTP transfers
...
failed and you reinvoked curl_easy_perform().
2002-06-10 12:34:04 +00:00
Daniel Stenberg
b47b053e54
Gustaf Hui fixed curl_multi_remove_handle() to prevent a potential crash
2002-06-05 21:29:20 +00:00
Daniel Stenberg
b79f01caf3
set HAVE_RAND_STATUS too
2002-06-05 14:14:54 +00:00
Daniel Stenberg
0db227f55e
hostcache_fixoffset() is now corrected to work on 64bit architectures
...
Bug report #564585 .
2002-06-05 13:41:33 +00:00
Daniel Stenberg
0be3f1a063
T. Bharath's updates since curl now uses the winmm lib for higher resolution
...
timer
2002-06-03 12:48:31 +00:00
Daniel Stenberg
c0257c6721
T. Bharath made the request size add up as it is documented to do.
2002-06-03 12:47:08 +00:00
Daniel Stenberg
9aec0fc7de
T. Bharath fixed higher resolution time for windows builds
2002-06-03 12:46:32 +00:00
Daniel Stenberg
bce5e0d82c
T. Bharath fixed the TIMER_REDIRECT.
2002-06-03 12:46:04 +00:00
Daniel Stenberg
62032ee248
Getting an empty FTP file no longer makes us return error 19. An empty file
...
is fine to get.
2002-05-28 22:33:30 +00:00
Daniel Stenberg
775645f29b
Gustaf Hui provided new code that changes how curl_multi_info_read()
...
messages are stored, so that they don't have to be kept around for the multi
handle's entire life time. He also made it return failure codes properly
which it didn't do before.
I made the messages only get stored per easy-handle so that they can be
independently killed easier without ruining the "master list". It makes
the info_read() function slightly less beautiful as it has to scan for
messages to return, but it makes removing individual handles a lot easier
and less error prone.
2002-05-28 14:45:50 +00:00
Daniel Stenberg
99c0456872
Adjusted to make curl_multi_perform() work properly even when
...
curl_multi_fdset() is not used.
2002-05-28 14:18:36 +00:00
Daniel Stenberg
59c11b82d5
Cris Bailiff's CAPATH support added
2002-05-28 09:21:29 +00:00
Daniel Stenberg
ec585e8907
When re-using a connection, make sure that we use the current host name as
...
we might actually re-use a connection to a different host, when using proxies!
This was what bug report #558888 was all about.
2002-05-21 22:24:56 +00:00
Daniel Stenberg
105ec79b2b
James Cone's efforts to add another netrc parsing "mode"
2002-05-21 22:17:19 +00:00
Daniel Stenberg
c7b03d6479
maprintf() and vmaprintf() now work better when printfing "%s" with an
...
empty string
2002-05-21 17:59:57 +00:00
Daniel Stenberg
323f195036
ASN1 files don't work for the *chain_file(), make them use the previous
...
version
2002-05-21 08:15:42 +00:00
Daniel Stenberg
5d2944c211
curl_formadd() now returns 'CURLFORMcode' instead of int, to better enable
...
checking for particular errors. curl/curl.h defines the errros
2002-05-21 07:44:27 +00:00
Daniel Stenberg
fe3ba1dd11
Roland Zimmermann's hint, we use SSL_CTX_use_certificate_chain_file() instead
...
of the previous one that used SSL_CTX_use_certificate_file()
2002-05-20 14:25:35 +00:00
Daniel Stenberg
9263652c6d
Fixes bug report #556930 - we need to make sure that the data is all right
...
after we've realloc() the packed hostent struct.
2002-05-17 07:49:28 +00:00
Daniel Stenberg
980a47b42b
support for ingoring session cookies added
2002-05-07 09:58:13 +00:00
Daniel Stenberg
f7ca561b06
the code for case CURLOPT_DEBUGDATA code broke the CURLOPT_STDERR one!
2002-05-06 18:30:17 +00:00
Daniel Stenberg
44debdde62
Better support for being used with the multi interface without the *fd_set()
...
and proper select()ing have been made.
2002-05-05 12:11:03 +00:00
Daniel Stenberg
d321056e8d
made VERBOSE output more like it used to be, HEADER_IN is thus also ignored
...
by the internal debugfunction callback
2002-05-04 15:36:07 +00:00
Daniel Stenberg
d9a1a59f22
CURL_MAX_WRITE_SIZE is a new exported define that informs about the biggest
...
sized buffer that may be passed to a write callback
2002-05-03 14:50:29 +00:00
Daniel Stenberg
0b898b5a8a
fixed return code
2002-05-03 12:40:37 +00:00
Daniel Stenberg
86cc34c0de
made the DEBUGFUNCTION get called properly on a few more places, especially
...
for DATA_IN and DATA_OUT.
2002-05-03 12:07:32 +00:00
Daniel Stenberg
39028f1bd4
make sure our own printf() clones are used
2002-05-03 12:06:04 +00:00
Daniel Stenberg
913e997061
use and set the fd_set pointers instead of the actual values, as then we
...
work properly with the multi interface when the user has provided the
fd_sets!
2002-05-02 22:14:31 +00:00
Daniel Stenberg
8e50d6b6f3
added two pointers to the fd_set variables to read/write from, as sometimes
...
we need to point to user-provided fd_sets
2002-05-02 22:13:35 +00:00
Daniel Stenberg
2db0744a7b
return CURLM_CALL_MULTI_PERFORM in one more case, and check return code
...
from malloc()
2002-05-02 22:12:14 +00:00
Daniel Stenberg
2de0028349
make sure the dns cache pointers in the easy handles are NULLed
2002-05-02 18:07:38 +00:00
Daniel Stenberg
35d04c5398
Hanno Kranzhoff noticed we didn't properly reset the download/upload counters
...
before transfers, when doing multiple ones on the same handle.
2002-05-02 08:52:09 +00:00
Daniel Stenberg
b1becd0ed5
Jacky Lam's fix to make the realloc() of the hostent data work properly
...
even when the realloc() actually gets a new memory block
2002-05-01 11:36:13 +00:00
Daniel Stenberg
969a25d1b2
implemented curl_multi_info_read() which I had forgotten before!
2002-04-27 22:21:51 +00:00
Daniel Stenberg
c64fca1b0c
Fixed the FTP response reader to deal with timeouts better. Previously it
...
would reset the timeout for each incoming data, which would make veeery
slow responses be allowed to take even more time since the timeout would only
be reached if the time between two received data chunks was longer than the
set timeout value...
2002-04-27 13:24:06 +00:00
Daniel Stenberg
15b2a3af91
(Curl_GetFTPResponse) moved some code to only get performed when actually
...
needed
2002-04-27 13:09:37 +00:00
Daniel Stenberg
8358505b6d
Now uses Curl_ as prefix for internal global symbols. curl_ should only be
...
used for "exported" globals.
2002-04-27 13:07:51 +00:00
Daniel Stenberg
1c42779845
DNC cache prune crash removed, made the name spacing follow the general
...
rule: "Curl_" prefix for library-wide private symbols, "curl_" is for
exported symbols.
2002-04-27 13:06:40 +00:00
Daniel Stenberg
f564905ac4
adjusted to the new Curl_resolv() proto
2002-04-25 19:26:29 +00:00
Daniel Stenberg
00e4f81446
prevent persistant connections to do name resolves
2002-04-25 19:18:19 +00:00
Daniel Stenberg
8927ddec16
In order to not get problems with DNS cache pruning, we no longer store
...
any name resolved data in any curl handle struct. That way, we won't mind
if the cache entries are pruned for the next time we need them. We'll just
resolve them again instead.
This changes the Curl_resolv() proto. It modifies the SessionHandle struct
but perhaps most importantly, it'll make the internals somewhat dependent
on the DNS cache not being disabled as that will cripple operations somewhat.
Especially for persistant connections.
2002-04-25 19:00:57 +00:00
Daniel Stenberg
0be7944d66
use the hostname pointer instead of using IPv4-only info from a struct
2002-04-25 15:50:49 +00:00
Daniel Stenberg
3b9ef8dfc8
removed warning about signed/unsigned comparison
2002-04-23 14:57:37 +00:00
Daniel Stenberg
db6d4bcf47
the 80 column police narrowed this source code! B-]
2002-04-23 14:56:21 +00:00
Daniel Stenberg
471f1d694f
fixes bug report #547484 , no_proxy doesn't properly strip off port numbers
...
from the host names before comparing
2002-04-23 13:34:28 +00:00
Daniel Stenberg
36e35b6f60
allow binding the local end of a connection even when using IPv6, thus we
...
now have --interface working properly
2002-04-22 23:56:13 +00:00
Daniel Stenberg
192606bc4b
use double where it is supposed to
2002-04-22 23:54:43 +00:00
Daniel Stenberg
53a9fdf078
use sclose() to close sockets
2002-04-22 23:53:49 +00:00
Daniel Stenberg
ef436bdbe8
renamed the TIMECOND defines to be CURL_ prefixed
2002-04-22 23:53:15 +00:00
Daniel Stenberg
21fc402c01
Jacky Lam's adjust resolve-buffer size patch applied. Slightly edited
...
by Daniel.
2002-04-22 13:31:16 +00:00
Daniel Stenberg
381f77756d
pack_hostent does not handle 64 bit pointers correctly.
...
A Bjrn Reese patch.
2002-04-19 11:00:26 +00:00
Sterling Hughes
a386562d9a
Prune old hostcache entries with each call...
...
This can be optimized a tidbit, but this is a start.
2002-04-17 20:13:55 +00:00
Daniel Stenberg
08f8917acb
Dirk Manske's fix for HTTP response code 301, that now behaves more like
...
browsers do. Which thus *breaks* the RFC 2616...
2002-04-17 07:16:49 +00:00
Daniel Stenberg
62d205a2ec
Dirk Manske brought the patch that introduces two new CURLINFO_* values:
...
CURLINFO_REDIRECT_TIME and CURLINFO_REDIRECT_COUNT.
2002-04-16 07:59:20 +00:00
Daniel Stenberg
29e873b12d
Jonatan Lander fixed the "Disables POST, goes with GET" output to be more
...
connected with reality! ;-)
2002-04-15 13:47:06 +00:00
Daniel Stenberg
95f78080ab
This makes formposting with a specified file missing fail. curl_easy_perform
...
will then return CURLE_READ_ERROR.
2002-04-15 11:19:03 +00:00
Daniel Stenberg
2361aabbef
Dirk Manske made libcurl strip off white spaces from the beginning of cookie
...
contents.
2002-04-14 18:21:17 +00:00
Daniel Stenberg
53c0e97117
removed unused variable
2002-04-14 07:33:44 +00:00
Sterling Hughes
bb44791bf3
Add protos and change return value of curl_hash_count....
2002-04-13 01:56:22 +00:00
Sterling Hughes
9ebcfe9dff
Speed up the hash code considerably, removing a bunch of legacy crud
2002-04-12 23:40:19 +00:00
Daniel Stenberg
c06171a802
store TIMER_CONNECT even if the connect failed
2002-04-12 10:03:59 +00:00
Daniel Stenberg
5528c1eaa5
corrected the verbose output for connects and fixed the connect time stamp
...
better for FTP (any protocol with protocol-specific connect actions)
2002-04-12 08:18:38 +00:00
Daniel Stenberg
93516effe4
the HTTP request is a CURLINFO_HEADER_OUT
2002-04-12 07:53:12 +00:00
Daniel Stenberg
3f6133be27
Jean-Philippe Barrette-LaPierre provided his patch that introduces
...
CURLOPT_DEBUGFUNCTION and CURLOPT_DEBUGDATA.
2002-04-12 07:21:11 +00:00
Daniel Stenberg
c69dd14cbc
added RISCOS makefile
2002-04-10 20:54:21 +00:00
Daniel Stenberg
7954652b80
brougth by Michael Curtis
2002-04-10 20:52:26 +00:00
Daniel Stenberg
308ae5cbf2
added info in to failf() lines and added a infof() call just before the
...
connect() so that it tells to which host and what port it is about to
attempt the connection
2002-04-10 14:20:24 +00:00
Daniel Stenberg
1cd5cdfccb
default proxy port set, as reported by Sebastien Willemijns
2002-04-10 14:07:03 +00:00
Daniel Stenberg
e8109b09b1
error code cleanup, use the new SEND/RECV errors
2002-04-10 13:44:42 +00:00
Daniel Stenberg
0866c1b52d
Michael Curtis' updates
2002-04-08 21:59:06 +00:00
Daniel Stenberg
5d28a857a4
based on Jacky Lam's "HTTP 1.0 304-only" fix, this change makes a 304 reply
...
always stop reading after the headers no matter what 'close' is.
2002-04-08 07:27:22 +00:00
Daniel Stenberg
a03fd7b81c
T. Bharath pointed out the flaw in ConnectionExists() for how we didn't
...
check proxy connections for "deadness" before they were re-used
2002-04-04 12:23:14 +00:00
Daniel Stenberg
1cfcbc50a6
Fixes the problem Jacky Jam pointed out, where libcurl will "hang" for an
...
extra second after having downloaded headers-only
2002-04-04 12:19:56 +00:00
Daniel Stenberg
d560207ea1
This corrects VERBOSE PASV ftp transfers on AIX (and OSF1/Tru64)
...
Gerhard Herre reported this in bug report #536238
2002-04-04 06:07:56 +00:00
Daniel Stenberg
90b51831fd
Tor Arntsen's fix for "CGI_Lite" compliance!
2002-04-03 11:11:01 +00:00
Daniel Stenberg
547e91dbf0
Clarence Gardner pointed out the not-taken-care-of return codes from SSL_read
2002-04-02 09:33:38 +00:00
Daniel Stenberg
04da96e044
Jacky Lam added memdebug.h include to prevent crashes when that is used
2002-04-02 06:36:47 +00:00
Daniel Stenberg
541e5a3b82
Jacky Lam cookie parser fix for domains with preceeding dot
2002-03-25 09:08:33 +00:00
Daniel Stenberg
5af61716aa
Miklos Nemeth's update
2002-03-23 15:41:17 +00:00
Daniel Stenberg
67b0f9aacd
no longer include "multi.h", it comes with the regular curl/curl.h now
2002-03-20 10:54:17 +00:00
Daniel Stenberg
854277bae5
crlf replacement on uploads did not work. test case 128 was added just now
...
to make sure it remains functional.
2002-03-20 10:53:24 +00:00
Daniel Stenberg
ca9760756a
verbose FTP PASV output could output a "random" name from the stack based
...
array
Also, uploading data with --crlf cannot check that the proper size was
uploaded and thus should not warn if the sizes differ. This can be changed
in the future by having the expected size in the connectdata struct and then
increase the expected size for each byte that is added in the --crlf
replacement process.
2002-03-20 10:52:24 +00:00
Daniel Stenberg
ab6b0f9843
removed multi.h
2002-03-19 14:32:43 +00:00
Daniel Stenberg
6b4532b592
moved to ../include/curl/
2002-03-19 10:34:06 +00:00
Daniel Stenberg
974f314f57
copyright string (year) update
2002-03-19 07:54:55 +00:00
Daniel Stenberg
eaff1a344e
made it pass stricter compiler flags with less warnings
2002-03-19 07:32:35 +00:00
Daniel Stenberg
5c691ed835
verbose PASV transfers passed a bad buffer size to the name resolver functions
...
and it cause cause a crash.
Albert Choy found and fixed it.
2002-03-16 16:59:47 +00:00
Daniel Stenberg
f73864a045
corrected SSL builds
2002-03-15 14:46:59 +00:00
Daniel Stenberg
5f758fbd11
make sure we return CURLE_WRITE_ERROR if the write callback returned
...
an error, even if we were decoding a chunked-encoded transfer
2002-03-15 12:42:41 +00:00
Daniel Stenberg
fb29529a52
Jun-ichiro itojun Hagino <itojun@itojun.org>:
...
Now first check if IPv6 is supported, then use PF_UNSPEC. If not, use PF_INET.
It'll solve both the "slow name lookup" problem on IPv4 and still work fine on
IPv6 hosts.
Bug report #530204 has more details:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=530204&group_id=976
2002-03-15 09:54:30 +00:00
Daniel Stenberg
3cd2673077
bug report #530204 correctly identified that revision 1.52 broke ipv6
...
functionality and this change reverts this.
However, with this revert we bring back problems on (some/all?) non-IPv6
enabled Linux machines that have getaddrinfo().
2002-03-15 08:45:09 +00:00
Daniel Stenberg
468b787272
if CURLOPT_POSTFIELDS isn't set, but CURLOPT_POST is, we will assume that
...
we should read the POST-data from the read callback
2002-03-14 14:39:23 +00:00
Daniel Stenberg
cfdb6f851c
2002
2002-03-14 14:37:41 +00:00
Daniel Stenberg
7886f120f3
CURLOPT_POST deserved a new comment with the new POST-by-callback support
2002-03-14 14:37:16 +00:00
Daniel Stenberg
76fe69b133
no longer attempts to SIZE a NULL pointer, as that wasn't very clever
...
(but didn't crash or anything)
2002-03-13 13:13:19 +00:00
Daniel Stenberg
e1bae4fc7e
Setting CURLOPT_PASSWDFUNCTION to NULL now restores the internal function.
2002-03-13 13:10:52 +00:00
Daniel Stenberg
bc9705f758
sendf() now deals with Curl_write() returning -1 properly, which it might
...
do if the write would've blocked
2002-03-13 13:09:37 +00:00
Daniel Stenberg
c819e234b8
now supports all options in arrays, except the CURLFORM_ARRAY itself
2002-03-13 12:10:20 +00:00
Daniel Stenberg
9f374c2050
Added support for CURLFORM_FILENAME to set the filename field of a file
...
part.
2002-03-11 15:18:59 +00:00
Daniel Stenberg
fe3c874001
detect fclose(NULL)
2002-03-08 15:31:44 +00:00
Daniel Stenberg
017be8a882
Jean-Philippe Barrette-LaPierre fixed the CURLOPT_PASSWDFUNCTION to make
...
NULL set back the internal default function
2002-03-08 15:06:42 +00:00
Daniel Stenberg
f51f2417c5
Brad corrected the include path (again)
2002-03-06 22:19:16 +00:00
Daniel Stenberg
80b004a57d
Wesley Laxton's CURLOPT_PREQUOTE work
2002-02-28 23:31:23 +00:00
Daniel Stenberg
ea8476a2dc
Ralph Mitchell's SSL problems made me notice that we didn't increase the
...
header byte counter properly
2002-02-28 15:13:35 +00:00
Daniel Stenberg
cb85ca18ab
more fancy alloc, we store the size in each allocated block so that we
...
can destroy the full allocated area just before we free it
2002-02-28 12:37:05 +00:00
Daniel Stenberg
0cacbc892c
always allocates at least 64 bytes for real, and damages them before free
2002-02-28 12:18:15 +00:00
Daniel Stenberg
6753c3c715
made building outside the source tree work again, Kevin Roth reported
2002-02-27 15:09:23 +00:00
Daniel Stenberg
3612c3774e
made Max-Age work as defined in the RFC.
...
my brain damaged fix to not parse spaces as part of the value is now fixed
to instead strip off trailing spaces from values.
2002-02-27 07:38:04 +00:00
Daniel Stenberg
66b8f48a88
When saving a cookie jar, set field 1 (counted from 0) properly to TRUE if the
...
domain starts with a dot.
2002-02-26 13:18:08 +00:00
Daniel Stenberg
a23a897ad2
removed crash on weird input, this also better discards silly input
2002-02-26 13:07:53 +00:00
Daniel Stenberg
e6ed3478ea
automake usage and options cleanup
2002-02-25 14:08:18 +00:00
Daniel Stenberg
b32a39f44f
oops, #if not #ifdef
2002-02-25 10:12:04 +00:00
Daniel Stenberg
e4fefd088d
cygnus can't include winsock.h even though it has it, why we need to
...
make a different and more complicated check for when to include it
2002-02-25 08:20:29 +00:00
Daniel Stenberg
b1ffe7b74a
better time selection for the connect timeout
2002-02-22 15:44:37 +00:00
Daniel Stenberg
cbca19d6c2
lib/config.h.in added to dist
2002-02-22 07:51:23 +00:00
Daniel Stenberg
721b05e343
Nico Baggus' VMS tweaks
2002-02-20 13:46:53 +00:00
Daniel Stenberg
a333bddeeb
Andrs Garca solved bug report #515228 by making sure the progress meter
...
is updated even if everything is read in one single pass, as the windows
functions apparantly does more often than other systems.
2002-02-20 13:38:34 +00:00
Daniel Stenberg
4c6a52fe90
corrected reference to multi-using examples
2002-02-19 11:02:01 +00:00
Daniel Stenberg
792d73a9cf
include winsock.h on window boxen to work smoother there
2002-02-19 11:00:34 +00:00
Daniel Stenberg
c795123cd5
fixed a long long mistake
2002-02-18 23:32:45 +00:00
Daniel Stenberg
3d5732d4e0
Rick Richardson's getaddrinfo() usage fix to speed up name resolves
2002-02-18 23:12:37 +00:00
Daniel Stenberg
b795929858
INADDR_NONE should be in_addr_t to work with 64bit archs better.
...
Really, we should only #define this in one file, not both here and in
connect.c!
2002-02-18 22:59:26 +00:00
Daniel Stenberg
535258ffe4
Philip Gladstone's size problem in add_buffer_send()
2002-02-18 22:41:52 +00:00
Daniel Stenberg
e21926f7f0
connection timeout comparison fix by Emil
2002-02-18 10:05:18 +00:00
Daniel Stenberg
e452f467d4
Philip Gladstone's 64-bit issues corrected.
...
Reminder for the future: when we're using malloc() we MUST include <stdlib.h>
as otherwise 64bit archs go bananas.
Bug report #517687
2002-02-17 14:55:35 +00:00
Daniel Stenberg
dfda7ba456
corrected the Expect: ignore, made Content-Type: possible to skip
2002-02-17 14:42:44 +00:00
Daniel Stenberg
feb6b6445e
Giaslas Georgios's Host: over proxy fix
2002-02-17 11:17:37 +00:00
Daniel Stenberg
55c6f60c90
ugh. the VMS stuff must've been like that for a reason, I put it back again
2002-02-07 14:47:41 +00:00
Daniel Stenberg
7cf6e8c9cc
moved the config-* files here from the ../Makefile.am
2002-02-07 14:34:34 +00:00
Daniel Stenberg
cdee43aa59
use the config files in this directory now, not ../
2002-02-07 14:33:36 +00:00
Daniel Stenberg
9c25b58b4c
moved the config-*.h files from root to the lib/ dir
2002-02-07 14:32:28 +00:00
Daniel Stenberg
c40b4f6c39
don't add 2 to the post size, that was a previous mistake because there
...
was an extra CRLF added to the post data
2002-02-07 09:32:40 +00:00
Daniel Stenberg
9e6cc86bf7
Miklos Nemeth improved
2002-02-06 16:00:55 +00:00
Daniel Stenberg
b544c5fa5c
ARGH the CRLF I removed recently was not only done after the initial
...
content-type header, it was used for each part and thus without this it
failed MISERABLY. *smacks forhead*
2002-02-06 15:48:53 +00:00
Daniel Stenberg
e9bfef0eb1
Brent Beardsley found the content-type bug!
2002-02-06 07:02:13 +00:00
Daniel Stenberg
ddbcccd43d
Kevin Roth's discovered SSL download problem
2002-02-05 15:33:00 +00:00
Daniel Stenberg
0d5bfe883e
Andreas Damm made getdate use gmtime_r if available
2002-02-01 11:11:26 +00:00
Daniel Stenberg
3474ec4ecb
_num_chars did wrong when called with a number that starts with 1!
2002-01-31 07:51:06 +00:00
Daniel Stenberg
907a6e0eed
Georg Horn the previous SSL_read() fix, this was actually the fix I did
...
on my test machine! :-)
2002-01-30 21:49:29 +00:00
Daniel Stenberg
b28051881e
Georg Horn found yet another SSL reading problem caused by the non-blocks.
...
This was a real bummer!
2002-01-30 15:11:47 +00:00
Daniel Stenberg
5b58e61f28
now re-seed by force (even if already seeded) if a random file or egd socket
...
is given
2002-01-30 08:17:23 +00:00
Daniel Stenberg
be2f3071b5
conn->upload_bufsize exists no more
2002-01-29 20:34:30 +00:00
Daniel Stenberg
85dbf82d93
append a CRLF pair after the content-type line
2002-01-29 20:32:10 +00:00
Daniel Stenberg
a9c4963cc0
removed three loust fprintf()s
...
removed the initial CRLF in the formpost, as they are part of the request
and should be written by the code in http.c!
2002-01-29 20:30:56 +00:00
Daniel Stenberg
a4934387d5
upload progress counter fix, removed the adjustable upload buffer size
2002-01-29 20:28:59 +00:00
Daniel Stenberg
e88a2ec6fc
no more adjustable upload buffer size, we use non-blocking sockets now so
...
this work-around is not needed anymore!
2002-01-29 20:28:26 +00:00
Daniel Stenberg
f114caca90
- T. Bharath pointed out that we seed SSL on every connect, which is a time-
...
consuming operation that should only be needed to do once. We patched
libcurl to now only seed on the first connect when unseeded. The seeded
status is global so it'll now only happen once during a program's life time.
2002-01-29 14:11:38 +00:00
Daniel Stenberg
76c53c690c
Giaslas Georgios introduced CURLINFO_CONTENT_TYPE
2002-01-29 10:49:32 +00:00
Daniel Stenberg
c341b11aaf
Steve Marx helped us realize that we shouldn't treat customrequest as a
...
request of its own, it just changes the keyword of a request.
2002-01-28 19:31:26 +00:00
Daniel Stenberg
6212e6990a
someone should have me punished, but this bug made curl bug seriously
...
on IPv4-linux machines
2002-01-28 19:23:18 +00:00
Daniel Stenberg
5d3dd7911e
newly generated
2002-01-28 18:39:55 +00:00
Daniel Stenberg
ae8375516b
Andreas Damm made it reentrant safe!
2002-01-28 18:39:40 +00:00