Daniel Stenberg
ad9648a215
reverted the bad naming of the implib names
2005-01-02 21:15:29 +00:00
Daniel Stenberg
1576f3319e
Alex Neblett's minor update
2005-01-02 19:19:32 +00:00
Daniel Stenberg
67abd4cd47
Rune Kleveland fixed a minor memory leak for received cookies with the (rare)
...
version attribute set.
2004-12-22 22:33:31 +00:00
Daniel Stenberg
58f4af7973
Marcin Konicki provided two configure fixes and a source fix to make curl
...
build out-of-the-box on BeOS.
2004-12-22 22:28:10 +00:00
Dan Fandrich
99befd3a15
C ensures that static variables are initialized to 0
2004-12-22 20:12:15 +00:00
Daniel Stenberg
444f6427b8
oops, variables first then code
2004-12-21 14:33:37 +00:00
Daniel Stenberg
a173e07eec
Prevent failf() from using the va_list variable more than once.
...
See bug report #1088962 and Single Unix Specification:
http://www.opengroup.org/onlinepubs/007908799/xsh/vfprintf.html
2004-12-21 14:22:10 +00:00
Daniel Stenberg
f4c5314890
include sys/types.h before sys/select.h
2004-12-21 10:11:07 +00:00
Dan Fandrich
80d301257c
Make some more arrays of pointers const.
2004-12-20 18:23:43 +00:00
Gisle Vanem
13ee90bbd4
OpenSSL updates; get CA_BUNDLE from env. Assume no
...
Kerberos, have <pkcs12.h>, <engine.h> and built-in engines.
2004-12-19 11:52:31 +00:00
Gisle Vanem
754d6c3abd
Remove 'data' initialiser.
2004-12-19 11:39:34 +00:00
Daniel Stenberg
3d647b9a98
if the pkcs12.h header exists, include it already in urldata.h to work around
...
a precedence problem with the zlib header. See CHANGES for details.
2004-12-19 09:37:32 +00:00
Daniel Stenberg
8ad47a13e5
Samuel Listopad added support for PKCS12 formatted certificates.
2004-12-18 10:42:48 +00:00
Dan Fandrich
a07dcfd850
Renamed a variable to avoid conflict with a C++ reserved word.
2004-12-17 20:18:53 +00:00
Gisle Vanem
321511a5be
Watcom has strtoll().
2004-12-17 19:57:50 +00:00
Gisle Vanem
c5297b9fd9
Watcom uses 'i64' suffix.
2004-12-17 18:33:09 +00:00
Gisle Vanem
7e00076586
<windows.h> required for Watcom.
2004-12-17 18:32:41 +00:00
Gisle Vanem
41e776f9db
Fix calling convention of wlap32.dll function. Watcom
...
uses fastcall by default, so force cdecl.
2004-12-17 17:54:21 +00:00
Gisle Vanem
5c2d4a6bdd
Watcom has 'struct timeval'.
2004-12-17 17:49:10 +00:00
Gisle Vanem
5e2e87cc8d
getdate.c is gone.
2004-12-17 12:28:04 +00:00
Gisle Vanem
b1bdba7db5
Print true netrc name (.netrc/_netrc).
2004-12-17 12:26:18 +00:00
Daniel Stenberg
e3d342df96
avoid an extra malloc
2004-12-17 10:09:32 +00:00
Daniel Stenberg
ccf65be0a4
fixed minor memory leak when running out of memory
2004-12-17 09:00:19 +00:00
Daniel Stenberg
7dfef13224
oops, add missing return keyword
2004-12-17 08:58:48 +00:00
Daniel Stenberg
6e1e9caa32
Based on Gisle Vanem's patch: make sure the directory re-use works even when
...
a URL-encoded path is used.
2004-12-16 22:20:33 +00:00
Gisle Vanem
f71725de6e
Must include <io.h> and <sys/stat.h> before redefining
...
stat(), fstat() and lseek().
2004-12-16 21:27:29 +00:00
Dan Fandrich
26fe6da93b
Renamed a struct member to avoid conflict with a C++ reserved word.
2004-12-16 21:27:23 +00:00
Daniel Stenberg
8d4ac69175
reduced the number of sub-blocks
2004-12-16 18:18:23 +00:00
Daniel Stenberg
4f5a6a33b4
moved the lseek() and stat() magic defines to setup.h and now take advantage
...
of struct_stat in formdata.c as well, to support formpost uploads of large
files on Windows too
2004-12-16 18:09:27 +00:00
Daniel Stenberg
494c40fd98
NULL the fp pointer after it has been fclosed()
2004-12-16 13:55:19 +00:00
Daniel Stenberg
d3b414724b
Dinar in bug report #1086121 , found a file handle leak when a multipart
...
formpost (including a file upload part) was aborted before the whole file was
sent.
2004-12-16 09:52:36 +00:00
Daniel Stenberg
95b84adb9b
precaution to prevent double typedefs of the bool
2004-12-15 14:05:07 +00:00
Dan Fandrich
a28b32aa45
Make some arrays of pointers const, too.
2004-12-15 02:32:04 +00:00
Dan Fandrich
1ba47e7af9
Add 'const' to immutable arrays.
2004-12-15 01:38:25 +00:00
Daniel Stenberg
553082e24a
prevent compiler warning when built without engine support
2004-12-14 22:06:25 +00:00
Daniel Stenberg
0d0d5e7ee3
Harshal Pradhan fixed changing username/password on a persitent HTTP
...
connection.
2004-12-14 21:22:51 +00:00
Dan Fandrich
f23d923fd3
Only declare static variables if they're needed. Fixed some compile warnings.
2004-12-14 20:44:36 +00:00
Dan Fandrich
10d6d8b2ae
Header files are in openssl/ only if USE_OPENSSL is set.
2004-12-14 20:25:23 +00:00
Dan Fandrich
358e08b95d
Removed fputc() prototype since it's already in stdio.h
2004-12-14 20:17:58 +00:00
Gisle Vanem
7d3f5d7ac1
urldata.h: Removed engine_list.
...
ssluse.*: Added SSL_strerror(). Curl_SSL_engines_list() now returns a slist
which must be freed by caller.
2004-12-14 14:20:21 +00:00
Daniel Stenberg
07f107ae20
Moved the engine stuff from the root-level of the SessionHandle struct to the
...
UrlState sub-struct. Also made the engine_list exist for non-ssl builds to
make curl build.
2004-12-14 09:36:22 +00:00
Gisle Vanem
1dc15ec1bc
Set 'data->state.os_errno = error' in some places.
...
Needed elsewhere too?
2004-12-13 17:52:55 +00:00
Gisle Vanem
bdb0620529
Added handling of CURLINFO_SSL_ENGINES;
...
Added Curl_SSL_engines_list(), cleanup SSL in url.c
(no HAVE_OPENSSL_x etc.).
2004-12-13 16:43:00 +00:00
Gisle Vanem
be9ea07e87
Handle new type CURLINFO_SLIST.
...
Handle new info list CURLINFO_SSL_ENGINES.
2004-12-13 16:37:27 +00:00
Daniel Stenberg
344c6a3725
Gisle's fix for resuming large file:// files on windows - slightly edited
...
by me.
2004-12-13 10:25:26 +00:00
Daniel Stenberg
fec571f5b0
modified to use the current error code name, not the obsolete one
2004-12-11 22:18:11 +00:00
Daniel Stenberg
1b8ac7c6b5
provide an error string when resuming fails - and use the proper error code,
...
not the former one
2004-12-11 18:55:51 +00:00
Daniel Stenberg
bd2db87237
fixed error message
2004-12-11 18:55:23 +00:00
Daniel Stenberg
df3ca59116
Dan Fandrich:
...
Here's a stab at a consolidation of the SSL detection heuristics into
configure. Source files aren't changed by this patch, except for setup.h and
the various config*.h files. Within the configure script, OPENSSL_ENABLED is
used to determine if SSL is being used or not, and outside configure,
USE_SSLEAY means the same thing; this could be even further unified some day.
Now, when SSL is not detected, configure skips the various checks that are
dependent on SSL, speeding up the configure process and avoiding complications
with cross compiles. I also updated all the architecture- specific config
files I could see, but I couldn't test them.
2004-12-11 18:47:22 +00:00
Daniel Stenberg
357fdb60b6
Dan Fandrich: added some missing files. "I can't try them so they might still
...
be broken, but at least they'll be less broken than they are now."
2004-12-10 21:58:11 +00:00
Daniel Stenberg
8a4eb8ed45
move the port number extraction to after the extraction of user name/password,
...
as suggested by Kai Sommerfeld
2004-12-10 15:11:11 +00:00
Daniel Stenberg
c0c885a1f3
don't try the rewind if no http struct is allocated yet
2004-12-10 14:45:35 +00:00
Daniel Stenberg
1be1d3cfb8
Matt Veenstra updated to 7.12.3. Starting now, we'll update the version number
...
in this file automatically on releases using the maketgz script.
2004-12-08 23:09:23 +00:00
Daniel Stenberg
b970469df9
Matt Veenstra:
...
- removal of getdate.c
- Added hostares.c, hostasyn.c, hostip4.c, hostip6.c, hostsync.c,
hostthre.c, inet_ntop.c, nwlib.c, parsedate.c, sterror.c, strtoofft.c
I have tested the build on 10.3, and will build on 10.2.8 in the next days.
2004-12-08 23:02:55 +00:00
Daniel Stenberg
80a324386b
Rene Bernhardt found and fixed a buffer overrun in the NTLM code, where
...
libcurl always and unconditionally overwrote a stack-based array with 3 zero
bytes. I edited the fix to make it less likely to occur again (and added
a comment explaining the reason to the buffer size).
2004-12-07 23:09:41 +00:00
Daniel Stenberg
c78ee11c41
CURLFTPSSL_ALL should make sure that the transfer fails if the data connection
...
isn't set to encrypted properly
2004-12-07 10:00:20 +00:00
Daniel Stenberg
4435e3b269
Fixed so that the final error message is sent to the verbose info "stream"
...
even if no errorbuffer is set.
2004-12-06 23:04:30 +00:00
Daniel Stenberg
b96a0dba90
Gisle Vanem's fix for better info messages when failing to connect using
...
the multi interface
2004-12-06 22:45:45 +00:00
Gisle Vanem
30dfc00a54
'crypto_engine' not used.
2004-12-06 16:36:50 +00:00
Gisle Vanem
fe5979cfdb
Replace MINGW32 with built-in __MINGW32__.
2004-12-06 14:43:04 +00:00
Daniel Stenberg
ac269a8f68
Dan Fandrich added the --disable-cookies option to configure to build
...
libcurl without cookie support. This is mainly useful if you want to build a
minimalistic libcurl with no cookies support at all. Like for embedded
systems or similar.
2004-12-05 23:59:32 +00:00
Daniel Stenberg
35944744f8
Richard Atterer fixed libcurl's way of dealing with the EPSV
...
response. Previously, libcurl would re-resolve the host name with the new
port number and attempt to connect to that, while it should use the IP from
the control channel. This bug made it hard to EPSV from an FTP server with
multiple IP addresses!
2004-12-05 23:33:33 +00:00
Daniel Stenberg
2c27e4ee76
Bug report #1078066 : when a chunked transfer was pre-maturely closed exactly
...
at a chunk boundary it was not considered an error and thus went unnoticed.
Added test case 207 to verify.
2004-12-03 09:31:25 +00:00
Daniel Stenberg
6ac9e67bd7
made the intended one hour default timeout in the CONNECT loop actually work
2004-12-02 23:30:13 +00:00
Daniel Stenberg
8726a6b6ed
comment cleanup
2004-12-02 22:52:14 +00:00
Daniel Stenberg
15360e5e51
prevent an initial "(nil)" to get sent in the initial request when doing
...
CONNECT to a proxy with digest
2004-12-02 17:08:37 +00:00
Gisle Vanem
bfa74c2649
alarm() works unreliable on djgpp 2.03. Don't use it.
2004-11-30 14:59:24 +00:00
Daniel Stenberg
c28e15c682
Dan Fandrich's fix for libz 1.1 and "extra field" usage in a gzip stream
2004-11-30 09:44:54 +00:00
Daniel Stenberg
0966ddafaa
As reported in Mandrake's bug tracker bug 12285
...
(http://qa.mandrakesoft.com/show_bug.cgi?id=12285 ), when connecting to an
IPv6 host with FTP, --disable-epsv (or --disable-eprt) effectively disables
the ability to transfer a file. Now, when connected to an FTP server with
IPv6, these FTP commands can't be disabled even if asked to with the
available libcurl options.
2004-11-29 21:25:07 +00:00
Daniel Stenberg
5ae34aa8e1
killed trailing whitespace
2004-11-29 12:11:46 +00:00
Daniel Stenberg
c0d448f778
if gmtime() returns NULL, this returns -1 to bail out nicely
2004-11-29 08:10:10 +00:00
Daniel Stenberg
a4752673bb
typecast the coversion from long to int
2004-11-27 09:27:48 +00:00
Gisle Vanem
d85bc18178
I changed my mind. Remove ioctl() macro in setup.h instead.
2004-11-26 16:08:15 +00:00
Gisle Vanem
af114358c8
Renamed urldata.h members 'ioctl*' to 'ioctrl*' due to
...
clash with djgpp ioctl() macro in setup.h.
2004-11-26 14:57:01 +00:00
Daniel Stenberg
ffe17a8197
As reported in Mandrake's bug tracker bug 12289
...
(http://qa.mandrakesoft.com/show_bug.cgi?id=12289 ), curl would print a newline
to "finish" the progress meter after each redirect and not only after a
completed transfer.
2004-11-26 14:33:13 +00:00
Daniel Stenberg
2459e1e268
removed no longer used variable
2004-11-26 08:52:18 +00:00
Daniel Stenberg
bf51f05a50
FTP improvements:
...
If EPSV, EPRT or LPRT is tried and doesn't work, it will not be retried on
the same server again even if a following request is made using a persistent
connection.
If a second request is made to a server, requesting a file from the same
directory as the previous request operated on, libcurl will no longer make
that long series of CWD commands just to end up on the same spot. Note that
this is only for *exactly* the same dir. There is still room for improvements
to optimize the CWD-sending when the dirs are only slightly different.
Added test 210, 211 and 212 to verify these changes. Had to improve the
test script too and added a new primitive to the test file format.
2004-11-25 22:21:49 +00:00
Daniel Stenberg
5d94ff5974
made the code fit within 80 cols
2004-11-25 16:49:14 +00:00
Daniel Stenberg
7b3fba1ad5
added missing new error string
2004-11-24 18:25:33 +00:00
Daniel Stenberg
3e1caa6185
HTTP "auth done right". See lib/README.httpauth
2004-11-24 16:11:35 +00:00
Daniel Stenberg
8e34e75100
Curl_select's timeout arg is an int
2004-11-22 13:28:44 +00:00
Daniel Stenberg
1729918777
Dan Fandrich fix to compile with libc5
2004-11-20 08:57:56 +00:00
Gisle Vanem
cef290c6b4
Enable >2GB files for MingW.
2004-11-19 15:15:52 +00:00
Gisle Vanem
539e34b5df
Suppress signed vs. unsigned warnings on Win32
2004-11-19 14:38:02 +00:00
Daniel Stenberg
765683403f
Curl_select() now uses curl_socket_t on socket arguments
2004-11-19 14:03:19 +00:00
Gisle Vanem
2b403db811
Winsock sockets are not in range 0..FD_SETSIZE.
...
Shouldn't Curl_select() use curl_socket_t ?
2004-11-19 13:46:58 +00:00
Daniel Stenberg
03e7b7c95f
add select.obj
2004-11-19 13:45:46 +00:00
Daniel Stenberg
1a05a90f1c
David Phillips' FD_SETSIZE fix
2004-11-19 08:52:33 +00:00
Daniel Stenberg
dcea109bb5
Dan Fandrich fix: eliminates some pedantic CodeWarrior compiler warnings and
...
errors.
2004-11-18 14:04:40 +00:00
Daniel Stenberg
7d0d19708a
Added README.httpauth to the dist
2004-11-16 14:24:54 +00:00
Daniel Stenberg
09f14efade
saved for the future
2004-11-16 14:02:24 +00:00
Daniel Stenberg
5931d43a36
clean up start time and t_startsingle use so that redirect_time works properly
2004-11-15 11:27:03 +00:00
Gisle Vanem
c3ecd552f5
Borland doesn't have <sys/utime.h> nor utime().
2004-11-14 13:49:09 +00:00
Gisle Vanem
56f0227c92
Static lib is libcurl.lib and import lib libcurl_imp.lib.
...
Added implib command. Cleanup
2004-11-14 13:48:15 +00:00
Daniel Stenberg
dcb5a4df01
Dan fixed the CURL_DISABLE_VERBOSE_STRINGS stuff for older gcc versions since
...
they don't support C99 varargs macros.
2004-11-13 21:57:33 +00:00
Gisle Vanem
61599ceb7b
Renamed import lib to "libcurl_imp.lib".
...
Some cleanup and making it more readable.
2004-11-13 14:17:41 +00:00
Gisle Vanem
98a8103a3b
Netware target (hosted on Linux gcc) doesn't support
...
or need __declspec.
2004-11-12 11:45:05 +00:00
Daniel Stenberg
94043b1150
Dan Fandrich added the --disable-crypto-auth option to configure to allow
...
libcurl to build without Digest support. (I figure it should also explicitly
disable Negotiate and NTLM.)
2004-11-12 09:18:14 +00:00
Daniel Stenberg
8e2f57c82e
Dan Fandrich: make --disable-dict actually disable dict
2004-11-11 23:13:06 +00:00
Daniel Stenberg
59c063dfd3
Fix behaviour when passing NULL to CURLOPT_POSTFIELDS and CURLOPT_HTTPPOST.
2004-11-11 23:11:04 +00:00
Daniel Stenberg
710e370c34
Dan Fandrich added --disable-verbose
2004-11-11 16:34:24 +00:00
Daniel Stenberg
cd73a733c7
dates from 2038 or later now return 0x7fffffff when 32 bit time_t is used
2004-11-11 09:26:09 +00:00
Gisle Vanem
865e495188
Handle drive-letter on MS-DOS.
2004-11-09 14:57:11 +00:00
Gisle Vanem
377e43fbb9
Changes for removing libcurl.def file on Win32.
...
Added "CURL_EXTERN" to memdebug.h functions.
Cleaned up Makefile.vc6.
2004-11-09 14:00:56 +00:00
Gisle Vanem
592686bee9
Change OS name. Fix header guard.
2004-11-08 14:21:24 +00:00
Gisle Vanem
f471a293ea
Un-do changes for WinCE; cdecl decoration is not needed.
...
Confirmed by Paul Nolan.
2004-11-08 14:20:14 +00:00
Daniel Stenberg
c688166066
check for and require tld.h to be present before libidn usage is activated
...
in the build, since libidn 0.3.X didn't have the header and we don't support
that old libidn versions anyway.
This was mentioned on the list by Jean-Philippe Barrette-LaPierre and in bug
report #1062264 .
2004-11-08 07:47:08 +00:00
Daniel Stenberg
6b49fd7483
Tim Sneddon's VMS fix for huge HTTP POSTs
2004-11-05 14:43:35 +00:00
Daniel Stenberg
f10985fc50
removed errno, added EAGAIN
2004-11-05 08:22:46 +00:00
Daniel Stenberg
edeac97773
it has a sys/stat.h file, according to Paul Nolan
2004-11-05 08:19:34 +00:00
Daniel Stenberg
d3be5b2725
delete trailing whitespace
2004-11-04 16:14:33 +00:00
Daniel Stenberg
4cd5220d27
use ifdef not if
2004-11-02 14:02:29 +00:00
Daniel Stenberg
24d47a6e07
Paul Nolan fix to make libcurl build nicely on Windows CE
2004-11-02 10:12:22 +00:00
Daniel Stenberg
8bfcae65ef
Dan Fandrich's gzip handling fix
2004-10-27 21:46:11 +00:00
Daniel Stenberg
7167cde020
Testing to define _REENTRANT unconditionally in here.
2004-10-26 13:31:55 +00:00
Daniel Stenberg
a00e7f0f5e
Tomas Pospisek filed bug report #1053287 that proved -C - and --fail on a
...
file that was already completely downloaded caused an error, while it
doesn't if you don't use --fail! I added test case 194 to verify the fix.
Grrr. CURLOPT_FAILONERROR is now added to the list stuff to remove in
libcurl v8 due to all the kludges needed to support it.
2004-10-25 11:28:40 +00:00
Daniel Stenberg
beb61ef429
Mohun Biswas found out that formposting a zero-byte file didn't work very
...
good. I fixed.
2004-10-24 22:31:40 +00:00
Daniel Stenberg
2730842559
Dan Fandrich's better ifdef for include fix
2004-10-21 08:22:07 +00:00
Daniel Stenberg
38b1d96750
Alexander Krasnostavsky made it possible to make FTP 3rd party transfers with
...
both source and destination being the same host. It can be useful if you want
to move a file on a server or similar.
2004-10-19 18:26:35 +00:00
Daniel Stenberg
f4bef25b5e
CURLINFO_NUM_CONNECTS and more
2004-10-19 15:30:08 +00:00
Gisle Vanem
ebf7d22503
djgpp has locale.h and setlocale().
2004-10-19 10:14:06 +00:00
Daniel Stenberg
21d5aead47
Alexander Krasnostavsky made the CURLOPT_FTP_CREATE_MISSING_DIRS option work
...
fine even for third party transfers.
2004-10-16 14:06:54 +00:00
Daniel Stenberg
f40c9b83df
libcurl leaked memory for cookies with the "max-age" field set.
2004-10-16 13:54:40 +00:00
Gisle Vanem
e356420123
Added Traian Nicolescu's patches for threaded resolver on
...
Windows. Plugged some potential handle and memory leaks.
Refs.
http://curl.haxx.se/mail/lib-2004-10/0134.html
http://curl.haxx.se/mail/lib-2004-10/0157.html
2004-10-16 12:59:05 +00:00
Daniel Stenberg
e8f85cba0f
Eric Vergnaud pointed out that libcurl didn't treat ?-letters in the user name
...
and password fields properly in URLs, like
ftp://us?er:pass?word@site.com/. Added test 191 to verify the fix.
2004-10-14 13:44:54 +00:00
Gisle Vanem
9deb76ce3e
Set errno = ENOMEM on faild countcheck().
2004-10-13 19:11:46 +00:00
Daniel Stenberg
411e9b0c45
#include "strerror.h" to get the strerror proto
2004-10-12 12:49:38 +00:00
Daniel Stenberg
557b6cfd3f
add proper error message when send() fails
2004-10-12 07:24:19 +00:00
Daniel Stenberg
84bf03b365
removed trailing whitespace
2004-10-11 17:26:24 +00:00
Daniel Stenberg
34342bcd19
SO_NOSIGPIPE
2004-10-11 17:23:41 +00:00
Daniel Stenberg
5322a86313
another lame attempt to avoid the "warning: will never be executed" warning
...
by gcc 3.4
2004-10-10 14:36:22 +00:00
Gisle Vanem
1dc50e21c4
MSVC uses 'i64' suffix for 64-bit sizes.
2004-10-10 14:08:05 +00:00
Daniel Stenberg
a7913a62a9
If long is 8 bytes we can use strtol() to get 64 bit numbers and won't need
...
our strtoll() replacement function.
2004-10-10 03:39:59 +00:00
Daniel Stenberg
6d1b37b3da
Prevent a longjmp warning by moving the rc assign within Curl_resolv().
...
Andy Cedilnik reported. Warning on HP-UX?
2004-10-10 03:32:01 +00:00
Daniel Stenberg
34750cc738
Use LL suffix for long long constants if the compiler supports it, to prevent
...
warnings.
2004-10-10 03:28:51 +00:00
Daniel Stenberg
eb5d3b5a7c
killed trailing whitespace
2004-10-08 09:39:37 +00:00
Daniel Stenberg
7663775971
if basename was found, check for a prototype and if none was found, provide
...
our own in the formdata.c file to prevent warnings on systems without it
2004-10-08 08:18:08 +00:00
Daniel Stenberg
fe46572f2b
prevent warning with comparison between signed and unsigned
2004-10-08 08:16:02 +00:00
Daniel Stenberg
62f97f1817
use curl_strnequal(), not strncasecmp()
2004-10-07 22:56:24 +00:00
Daniel Stenberg
c274e51654
use tld_strerror() only if previously detected, since otherwise we can't
...
work with libidn < 0.5.6
2004-10-07 07:41:44 +00:00
Gisle Vanem
071218a201
Fixed tld_check_name(). idna_to_unicode_lzlz() should never fail,
...
but return FALSE if 'uc_name == NULL' just in case.
2004-10-06 18:55:58 +00:00
Gisle Vanem
f0d6cc23ae
USE_LIBIDN: Added Top-level-domain (TLD) check for host->name.
...
Only print a warning if check fails.
2004-10-06 18:40:10 +00:00
Daniel Stenberg
9a2aed7d7a
Chih-Chung Chang reported that if you use CURLOPT_RESUME_FROM and enabled
...
CURLOPT_FOLLOWLOCATION, libcurl reported error if a redirect happened even if
the new URL would provide the resumed file. Test case 188 added to verify the
fix (together with existing test 99).
2004-10-06 13:37:12 +00:00
Daniel Stenberg
49b2896a3b
avoid warnings on systems with this member set const
2004-10-06 07:52:20 +00:00
Daniel Stenberg
39af394a1c
removed tabs and trailing whitespace from source
2004-10-06 07:50:18 +00:00
Daniel Stenberg
6c5ea2af27
untabify
2004-10-06 06:58:42 +00:00
Gisle Vanem
93e084e097
djgpp has basename()
2004-10-05 13:48:50 +00:00
Daniel Stenberg
1a61bcecfc
minor edit to re-use a variable and to hopefully avoid a (moot) warning
...
about code that won't be reached
2004-10-05 11:03:59 +00:00
Daniel Stenberg
70c3f6a8dd
avoid warning for unused variable
2004-10-05 08:42:56 +00:00
Daniel Stenberg
bb999d8213
use idna_strerror() if it is available (only in libidn 0.5.6 or later)
2004-10-05 08:40:26 +00:00
Daniel Stenberg
121197bc87
Only include libgen.h if we have a basename as well.
...
Mainly meant to deal with the IRIX case which seems to requrie a "-lgen" lib
to find the basename function and thus without the gen lib, it finds the
header but not the function and our replacement function has a prototype
that doesn't match the IRIX one.
A different approach would be to make configure detect and use -lgen for the
systems that require it.
2004-10-05 06:55:09 +00:00
Daniel Stenberg
d5dd8e0fdc
let our basename() be static
2004-10-05 06:49:09 +00:00
Daniel Stenberg
95def48071
Made the dns entry remain locked while a connection to the host remains to
...
allow verbose output during this period. Bertrand Demiddelaer reported and
helped fixing.
2004-10-04 10:36:51 +00:00
Daniel Stenberg
2ee6c33412
set async.done to TRUE last in the addrinfo callback to prevent the risk that
...
the multi-threaded resolver does wrong
2004-10-03 21:32:24 +00:00
Daniel Stenberg
be7ce435c0
Replaced the use of isspace() with our own version instead since we have most
...
data as 'char *' and that makes us pass in negative values if there is 8bit
data in the string. Changing to unsigned causes too much warnings or too many
required typecasts to the normal string functions.
2004-10-03 21:02:01 +00:00
Daniel Stenberg
19b284c214
Gisle Vanem provided code that displays an error message when the (libidn
...
based) IDN conversion fails. This is really due to a missing suitable
function in the libidn API that I hope we can remove once libidn gets a
function like this.
2004-10-02 13:01:44 +00:00
Daniel Stenberg
6b3e3095ea
removed weird preprocessor juggling not needed
2004-10-02 12:58:27 +00:00
Daniel Stenberg
fd2aad1d9b
someone should hit me
2004-10-01 11:27:14 +00:00
Daniel Stenberg
d239fc5d04
Aleksandar Milivojevic reported a problem in the Redhat bugzilla (see
...
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=134133 ) and not to anyone
involved in the curl project! This happens when you try to curl a file from a
proftpd site using SSL. It seems proftpd sends a somewhat unorthodox PASS
response code (232 instead of 230). I relaxed the response code check to deal
with this and similar cases.
2004-10-01 11:22:11 +00:00
Daniel Stenberg
ec4da97a35
fixed the basename() replacement, reported by Gisle
2004-10-01 11:20:38 +00:00
Daniel Stenberg
8e87223195
- Based on Fedor Karpelevitch's formpost path basename patch, file parts in
...
formposts no longer include the path part. If you _really_ want them, you
must provide your preferred full file name with CURLFORM_FILENAME.
Added detection for libgen.h and basename() to configure. My custom
basename() replacement function for systems without it, might be a bit too
naive...
Updated 6 test cases to make them work with the stripped paths.
2004-10-01 06:36:11 +00:00
Daniel Stenberg
be1cece69b
- Larry Campbell added CURLINFO_OS_ERRNO to curl_easy_getinfo() that allows an
...
app to retrieve the errno variable after a (connect) failure. It will make
sense to provide this for more failures in a more generic way, but let's
start like this.
2004-09-30 21:01:23 +00:00
Daniel Stenberg
45be6d6645
killed trailing whitespace
2004-09-30 20:50:34 +00:00
Daniel Stenberg
6af6a2bbe8
Fixed an error message: we use CWD, we don't cd into dirs with FTP
2004-09-29 07:21:23 +00:00
Daniel Stenberg
2576ac1c76
Bertrand Demiddelaer fixed curl_easy_reset() so that it doesn't mistakingly
...
enable the progress meter.
2004-09-28 22:26:47 +00:00
Daniel Stenberg
1003628103
Only active the engine code if ssl is enabled. This is how the actual engine
...
member in the struct is used.
2004-09-28 07:11:32 +00:00
Daniel Stenberg
cb80670885
Ben Greear's minor fix to build (better) with cross-compiled(?) mingw
2004-09-26 06:53:53 +00:00
Daniel Stenberg
c189687188
allow setting CURLOPT_SSLENGINE to NULL even if no SSL engine is supported
2004-09-25 21:28:26 +00:00
Daniel Stenberg
7676f40218
jean-claude Chauve fixed an LDAP bug
2004-09-22 08:01:41 +00:00
Daniel Stenberg
2de62cb06f
less long => int implicit conversion warnings
2004-09-20 13:21:48 +00:00
Gunter Knauf
be1df3ca0a
removed getdate.c hack.
2004-09-19 23:30:34 +00:00
Daniel Stenberg
0d37f8564e
kill trailing whitespace and clarify a few errors
2004-09-19 14:28:16 +00:00
Daniel Stenberg
6cd2536048
set an error message when connection fails
2004-09-19 14:27:56 +00:00
Daniel Stenberg
6a06667cc0
Added CURLOPT_FTPSSLAUTH
2004-09-16 21:45:16 +00:00
Daniel Stenberg
25bf23105d
Location: problem with bad original URL, identified in bug report #1029478
2004-09-16 21:28:38 +00:00
Daniel Stenberg
d4076c9a8a
fixed to use the new file. Can we make this use Makefile.inc somehow?
2004-09-15 08:05:53 +00:00
Daniel Stenberg
f71b3f48a1
Replaced the former date parser with a rewrite. No more yacc/bison needed.
2004-09-15 07:28:04 +00:00
Daniel Stenberg
adbe3eefb6
and moved back the month array to a static one since the ftp code won't need
...
it anymore
2004-09-13 20:49:27 +00:00
Daniel Stenberg
33f69c0546
removed this file again, we only provide a single public function and that
...
is already in the public header file
2004-09-13 20:48:24 +00:00
Daniel Stenberg
6c3a87a599
no longer includes getdate.h, there's no need for it
2004-09-13 20:47:31 +00:00
Daniel Stenberg
13cc010e38
getdate.h is not required to include, it adds nothing new
2004-09-13 20:47:15 +00:00
Daniel Stenberg
e99bf99829
revert the change for the new date parser, as the new one can deal with
...
the old format now
2004-09-13 20:43:12 +00:00
Daniel Stenberg
2e7dcc1e2a
support for YYYYMMDD added, which allows us to keep using the lib/ftp.c code
...
I was previously #ifdef'ing to a different look when this parser is used
2004-09-13 20:40:27 +00:00
Daniel Stenberg
b85a036e4a
added more examples/docs in the top comment
2004-09-13 07:57:12 +00:00
Daniel Stenberg
7885264b29
Since many users probably already use local time strings as input, I now
...
made it deal with named time zones as well as mail-style +0200 ones.
Seems to work fine. I'm comparing with GNU date command:
date -d [date] -u +%s
2004-09-13 07:45:19 +00:00
Daniel Stenberg
27d509cfe9
Minor adjustment needed for the new date parser to succeed. ifdef'ed out
...
for now.
2004-09-11 19:19:59 +00:00
Daniel Stenberg
ade8e47a8c
more docs and fixed the delta compared to GMT that prevented test case 141 to
...
work with this
2004-09-11 19:16:34 +00:00
Daniel Stenberg
17acdb5acf
slightly better but still lacks
2004-09-11 13:07:42 +00:00
Daniel Stenberg
f6433211ae
getdate replacement code. smaller, slicker, faster.
2004-09-11 09:24:02 +00:00
Daniel Stenberg
b8b56248bd
- Bug report #1025986 . When following a Location: with a custom Host: header
...
replacement, curl only replaced the Host: header on the initial request
and didn't replace it on the following ones. This resulted in requests with
two Host: headers.
Now, curl checks if the location is on the same host as the initial request
and then continues to replace the Host: header. And when it moves to another
host, it doesn't replace the Host: header but it also doesn't make the
second Host: header get used in the request.
This change is verified by the two new test cases 184 and 185.
2004-09-10 20:58:51 +00:00
Gunter Knauf
702f549a6a
fixed nasty warnings with gcc 3.3.
2004-09-03 18:51:36 +00:00
Daniel Stenberg
6fa624cf8c
improved error message when client cert return failure
2004-09-02 21:03:41 +00:00
Daniel Stenberg
92637303db
fix the return code for curl_multi_add_handle()
2004-08-31 06:04:43 +00:00
Daniel Stenberg
05825a8a9f
Make "Proxy-Connection: close" close the current proxy connection, as
...
Roman Koifman found out.
2004-08-30 12:51:32 +00:00
Daniel Stenberg
ee44677d7e
Attempt to quick-fix the getdate problem by post-replacing the getdate.c
...
file after the bison/yacc process to add the fix Harshal Pradhan suggested.
2004-08-24 11:48:02 +00:00
Daniel Stenberg
7119679080
updated in CVS, generated with a much newer bison version
2004-08-23 15:28:53 +00:00
Daniel Stenberg
723bfe42e7
Roman Koifman pointed out that libcurl send Expect: 100-continue on POSTs and
...
PUTs even when told to use HTTP 1.0, which is not correct.
2004-08-23 12:34:55 +00:00
Daniel Stenberg
cd52b9f0da
Alexander Krasnostavsky made the write callback get called even when a zero
...
byte file is downloaded.
2004-08-20 12:09:09 +00:00
Daniel Stenberg
a231a96841
actually, we check for a numerical host using either ipv4 or ipv6, as neither
...
should result in a reverse dns lookup
2004-08-20 09:18:12 +00:00
Daniel Stenberg
93b61bf0d3
use inet_pton() correctly!
2004-08-20 09:11:52 +00:00