Daniel Stenberg
32bc30e210
Based on an error report by Philippe Vaucher, we no longer count a retried
...
connection setup as a follow-redirect. It turns out 1) this fails when a FTP
connection is re-setup and 2) it does make the max-redirs counter behave
wrong. This fix was not verified since the reporter vanished, but I believe
this is the right fix nonetheless.
2006-01-30 08:20:52 +00:00
Daniel Stenberg
8d4eb2bc1f
updated source header
2006-01-26 10:39:25 +00:00
Daniel Stenberg
67bf4f28ff
Michal Marek provided a patch for FTP that makes libcurl continue to try PASV
...
even after EPSV returned a positive response code, if libcurl failed to
connect to the port number the EPSV response said. Obviously some people are
going through protocol-sensitive firewalls (or similar) that don't understand
EPSV and then they don't allow the second connection unless PASV was
used. This also called for a minor fix of test case 238.
2006-01-24 14:40:43 +00:00
Daniel Stenberg
fcfd6d9504
Duane Cathey was one of our friends who reported that curl -P [IP]
...
(CURLOPT_FTPPORT) didn't work for ipv6-enabed curls if the IP wasn't a
"native" IP while it works fine for ipv6-disabled builds!
In the process of fixing this, I removed the support for LPRT since I can't
think of many reasons to keep doing it and asking on the mailing list didn't
reveal anyone else that could either. The code that sends EPRT and PORT is
now also a lot simpler than before (IMHO).
2006-01-19 23:52:03 +00:00
Daniel Stenberg
c31451cf13
Jon Turner pointed out that doing -P [hostname] with curl (built ipv4-only)
...
didn't work.
2006-01-19 22:02:46 +00:00
Daniel Stenberg
67a83c1b34
David Shaw finally removed all traces of Gopher and we are now officially
...
not supporting it. It hasn't been functioning for years anyway, so this is
just finally stating what already was true. And a cleanup at the same time.
2006-01-16 22:14:37 +00:00
Daniel Stenberg
4c35a40858
Bryan Henderson turned the 'initialized' variable for curl_global_init()
...
into a counter, and thus you can now do multiple curl_global_init() and you
are then supposed to do the same amount of calls to curl_global_cleanup().
Bryan also updated the docs accordingly.
2006-01-15 23:55:53 +00:00
Daniel Stenberg
d9bd5de0b1
Fixed FTP_SKIP_PASV_IP and FTP_USE_EPSV to "do right" when used on FTP thru
...
HTTP proxy.
2006-01-12 22:18:38 +00:00
Daniel Stenberg
31c7aa0ba4
Michael Jahn fixed ftp over CONNECT
2006-01-12 12:40:04 +00:00
Daniel Stenberg
4431338691
When using a bad path over FTP, as in when libcurl couldn't CWD into all
...
given subdirs, libcurl would still "remember" the full path as if it is the
current directory libcurl is in so that the next curl_easy_perform() would
get really confused if it tried the same path again - as it would not issue
any CWD commands at all, assuming it is already in the "proper" dir.
Starting now, a failed CWD command sets a flag that prevents the path to be
"remembered" after returning.
2006-01-10 23:03:22 +00:00
Daniel Stenberg
bda1e9aeab
Made the copyright year match the latest modification's year.
2006-01-09 13:17:14 +00:00
Daniel Stenberg
f4cc8153ae
Mike Jean fixed so that the second CONNECT when doing FTP over a HTTP proxy
...
actually used a new connection and not sent the second request on the first
socket!
2006-01-07 22:24:16 +00:00
Gisle Vanem
4dcb930247
Include <sys/ioctl.h> before redefining ioctl().
2006-01-02 18:35:58 +00:00
Marty Kuhrt
0040a60559
fix questionable compare
2005-12-30 00:35:21 +00:00
Marty Kuhrt
cc34342790
fix questionable compare compiler error (unsigned can't be < 0)
2005-12-30 00:20:46 +00:00
Marty Kuhrt
b11dec5dd5
putting back into dist
2005-12-30 00:07:25 +00:00
Daniel Stenberg
0e3ebd9841
Kirill Vasiliev fixed the 'release-ssl-dll' target to properly build a
...
static libcurl using openssl as dll.
2005-12-23 23:40:40 +00:00
Daniel Stenberg
7d1e3ebeed
explain tld_check_name()
2005-12-20 22:46:12 +00:00
Gisle Vanem
7b51aafa86
Changes for PellesC compiler under Win32. A bit limited, but
...
we just love swedish products...
2005-12-20 22:20:04 +00:00
Dan Fandrich
178afd81a9
Fixed lcc compiler warnings.
2005-12-19 19:47:14 +00:00
Yang Tse
0ad3e046a4
Fix spacing. When defining, define to 1.
2005-12-18 16:50:33 +00:00
Yang Tse
d6c5d24af3
Cleanup windows header includes. Where aplicable, inclusion of
...
windows.h winsock.h winsock2.h ws2tcpip.h is done in setup.h
2005-12-18 15:36:14 +00:00
Yang Tse
23b34744d9
Cleanup
2005-12-17 21:20:35 +00:00
Yang Tse
bc8590aa12
Windows related cleanup
2005-12-17 20:37:53 +00:00
Yang Tse
336e3b8baf
Change multiple header inclusion prevention definition to __LIB_CURL_SETUP_H
2005-12-17 06:04:35 +00:00
Yang Tse
e105d5c28f
'Fix' windows builds
2005-12-16 20:55:07 +00:00
Daniel Stenberg
6dbfce1031
Jean Jacques Drouin pointed out that you could only have a user name or
...
password of 127 bytes or less embedded in a URL, where actually the code
uses a 255 byte buffer for it! Modified now to use the full buffer size.
2005-12-16 14:52:16 +00:00
Dan Fandrich
e2df946eee
Fixed some compiler warnings on lcc.
2005-12-13 18:54:31 +00:00
Yang Tse
d14588120f
Undo last 'fix', since it was not the proper one.
2005-12-13 13:50:22 +00:00
Yang Tse
947f9deed5
Fix compiler warning
2005-12-12 18:40:18 +00:00
Yang Tse
b15f3bb969
Undo last changes
2005-12-11 23:37:58 +00:00
Daniel Stenberg
998e8cba19
Dov Murik made defining HTTP_ONLY also disable TFTP
2005-12-11 23:14:25 +00:00
Yang Tse
e3f523ab2a
Avoid generation of additional warnings
2005-12-11 18:29:18 +00:00
Yang Tse
36485e56ed
Fix compiler warning and compatibility issue with the type of the parameter used in getnameinfo() to receive the length of the sockaddr struct.
2005-12-11 12:03:01 +00:00
Yang Tse
1cc98ab50f
Unset HAVE_STRUCT_SOCKADDR_STORAGE when using msvc 6.0 with no PSDK
2005-12-09 15:19:07 +00:00
Dan Fandrich
df03d5a8b2
Replaced nonstandard u_char and u_int types
2005-12-08 22:59:58 +00:00
Yang Tse
6a0ed81e67
Fix compiler warning
2005-12-08 20:38:04 +00:00
Yang Tse
c94f3e8188
Fix compiler warning
2005-12-08 19:47:33 +00:00
Dan Fandrich
1e5f6cc1dc
Fixed a lingering omission of gzip support.
2005-12-08 18:59:19 +00:00
Daniel Stenberg
f49df54a36
7.15.1 with the now to be announced security flaw fixed
2005-12-06 23:05:51 +00:00
Dan Fandrich
8c6f654b26
Added a run-time check to warn if TFTP is going to fail due to portability
...
issues in the code.
2005-12-05 20:07:05 +00:00
Daniel Stenberg
083c5e17e1
Yang Tse fixed: Openssl 0.9.9 makes 'const' the SSL_METHOD parameter in
...
SSL_CTX_new and others, and also makes functions SSLv23_client_method,
TLSv1_client_method, etc return a 'const' SSL_METHOD pointer. Previous
versions do not use the 'const' qualifier.
2005-12-05 15:14:04 +00:00
Daniel Stenberg
272231fb09
Another Yang Tse warning cleanup raid!
2005-12-05 14:10:48 +00:00
Gisle Vanem
67b4d9b232
Recent OpenSSL returns a 'const' in '*_client_method()'. So avoid
...
'assignment discards qualifiers from pointer target type' warning.
2005-12-04 18:47:36 +00:00
Daniel Stenberg
9c312637d1
Yang Tse's fix to only provide the proto if there is such a function and
...
we didn't find any proto
2005-12-02 23:22:45 +00:00
Daniel Stenberg
feacad7f68
Yang Tse fixed the 4th argument in the sendto() calls
2005-12-02 23:22:00 +00:00
Daniel Stenberg
6513303498
Jamie Newton pointed out that libcurl's file:// code would close() a zero
...
file descriptor if given a non-existing file.
2005-12-01 23:42:03 +00:00
Daniel Stenberg
176d4e85e9
cast the va_arg() assignment to ftp_filemethod properly
2005-11-30 13:09:48 +00:00
Daniel Stenberg
0fd282b078
new experimental "ftp method" code
2005-11-28 23:06:00 +00:00
Daniel Stenberg
b222b2304e
Yang Tse's changes to provide an inet_pton() proto for the platforms who
...
don't have one in order to fix a remaining warning on IRIX 6.2.
2005-11-28 20:21:35 +00:00
Daniel Stenberg
01cbf08064
Yang Tse: fixes the use of Curl_inet_ntop and Curl_inet_pton with no
...
prototypes on some platforms, ie IRIX 6.2 MIPS C 6.2
2005-11-25 22:20:02 +00:00
Daniel Stenberg
afc2aa2b3f
Yang Tse: use static on file-private functions
2005-11-24 20:39:00 +00:00
Daniel Stenberg
d055b269ed
Yang Tse: fix compilation errors when SSL is not disabled and HTTP is
...
disabled
2005-11-24 20:38:20 +00:00
Daniel Stenberg
8a246a4a9f
Yang Tse: removes GOPHER protocol when HTTP is disabled
2005-11-24 20:37:13 +00:00
Gisle Vanem
2f684351bf
Changes for OpenWatcom 1.4.
2005-11-24 20:33:38 +00:00
Daniel Stenberg
74e5beab9d
Doug Kaufman's set of patches to make curl build fine on DJGPP again using
...
configure.
2005-11-24 10:22:46 +00:00
Daniel Stenberg
05a6013f42
Yang Tse's patch to silence MSVC warnings
2005-11-23 22:59:24 +00:00
Daniel Stenberg
cfff544d67
only enable NTLM if HTTP and NTLM is not disabled, and if NTLM is disabled
...
we define an empty macro for the ntlm cleanup function
2005-11-23 11:51:31 +00:00
Daniel Stenberg
599d9642ca
Yang Tse fixed MSVC 6.0 warnings
2005-11-23 09:10:00 +00:00
Daniel Stenberg
0264faaa4e
fix compiler warning
2005-11-18 07:23:50 +00:00
Daniel Stenberg
4022a60ea7
I extended a patch from David Shaw to make libcurl _always_ provide an error
...
string in the given error buffer to address the flaw mention on 21 sep 2005.
2005-11-17 14:29:54 +00:00
Daniel Stenberg
92c0de518e
Quagmire reported that he needed to raise a NTLM buffer for SSPI to work
...
properly for a case, and so we did. We raised it even for non-SSPI builds
but it should not do any harm. http://curl.haxx.se/bug/view.cgi?id=1356715
2005-11-14 22:10:52 +00:00
Daniel Stenberg
fd870e4e8a
Yang Tse: msvc7+ has deprecated the 'DESCRIPTION' section in
...
module-definition files. this section is not mandatory for msvc60 so it
could be completely removed from libcurl.def.
2005-11-14 07:48:05 +00:00
Daniel Stenberg
d52ed3fff2
Jan Kunder's debian bug report
...
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338680 identified a weird
error message for when you try to upload a file and the requested directory
doesn't exist on the target server.
2005-11-14 00:18:12 +00:00
Daniel Stenberg
9ace303528
Yang Tse fixed compiler warnings
2005-11-13 23:53:14 +00:00
Daniel Stenberg
7e81c35cdc
to build with old gnutls verions, don't use the *_t types
2005-11-13 23:04:28 +00:00
Gisle Vanem
d4714517c0
Add HAVE_STRUCT_SOCKADDR_STORAGE.
...
My mistake; WinCE has it's own config-file.
2005-11-13 13:32:19 +00:00
Gisle Vanem
280e4bf4c3
Fix for WIN32. WIN32 does have 'struct sockaddr_storage', but
...
that's in <winsock2.h>. Hence tftp.c wouldn't compile on WinCE.
2005-11-13 13:20:37 +00:00
Daniel Stenberg
c2862742ab
Thanks to this nice summary of poll() implementations:
...
http://www.greenend.org.uk/rjk/2001/06/poll.html and further tests by Eugene
Kotlyarov, we now know that cygwin's poll returns only POLLHUP on remote
connection closure so we check for that case (too) and re-enable poll for
cygwin builds.
2005-11-13 09:24:06 +00:00
Daniel Stenberg
d58790af17
oops * 2
2005-11-12 22:13:20 +00:00
Daniel Stenberg
9ef7a13403
oops
2005-11-12 22:12:42 +00:00
Daniel Stenberg
a5da1219bb
Reversed the logic for sockaddr_storage and made our own Curl_sockaddr_storage
...
struct instead to use.
2005-11-12 22:10:42 +00:00
Daniel Stenberg
5e3836055f
Dima Barsky patched problem #1348930 : the GnuTLS code completely ignored
...
client certificates! (http://curl.haxx.se/bug/view.cgi?id=1348930 ).
2005-11-11 23:20:07 +00:00
Daniel Stenberg
37a6a0bb3e
Moved the sockaddr_storage definition to lib/sockaddr.h and only include that
...
in files that actually need the struct.
2005-11-11 22:04:11 +00:00
Daniel Stenberg
ae9fbe573e
David Lang fixed IPv6 support for TFTP!
2005-11-10 22:25:07 +00:00
Daniel Stenberg
29676f473d
David Lang: if there is no sockaddr_storage, make up our own and use that
2005-11-10 22:24:49 +00:00
Daniel Stenberg
cab59b4c32
Removed the use of AI_CANONNAME in the IPv6-enabled resolver functions since
...
we really have no use for reverse lookups of the address.
I truly hope these are the last reverse lookups we had lingering in the
code!
2005-11-08 14:45:58 +00:00
Daniel Stenberg
175335808b
Dmitry Bartsevich discovered some issues in compatibilty of SSPI-enabled
...
version of libcurl with different Windows versions. Current version of
libcurl imports SSPI functions from secur32.dll. However, under Windows NT
4.0 these functions are located in security.dll, under Windows 9x - in
secur32.dll and Windows 2000 and XP contains both these DLLs (security.dll
just forwards calls to secur32.dll).
Dmitry's patch loads proper library dynamically depending on Windows
version. Function InitSecurityInterface() is used to obtain pointers to all
of SSPI function in one structure.
: ----------------------------------------------------------------------
2005-11-08 14:15:34 +00:00
Gisle Vanem
6b1e54da62
Use an empty '*mod_name'.
2005-11-01 16:27:27 +00:00
Daniel Stenberg
b91421b107
Vilmos Nebehaj improved libcurl's LDAP abilities:
...
The LDAP code in libcurl can't handle LDAP servers of LDAPv3 nor binary
attributes in LDAP objects. So, I made a quick patch to address these
problems.
The solution is simple: if we connect to an LDAP server, first try LDAPv3
(which is the preferred protocol as of now) and then fall back to LDAPv2.
In case of binary attributes, we first convert them to base64, just like the
openldap client does. It uses ldap_get_values_len() instead of
ldap_get_values() to be able to retrieve binary attributes correctly. I
defined the necessary LDAP macros in lib/ldap.c to be able to compile
libcurl without the presence of libldap
2005-10-31 08:55:01 +00:00
Daniel Stenberg
43b3954fa5
kill trailing whitespace
2005-10-31 08:47:54 +00:00
Daniel Stenberg
966fa848a0
Nis Jorgensen filed bug report #1338648
...
(http://curl.haxx.se/bug/view.cgi?id=1338648 ) which really is more of a
feature request, but anyway. It pointed out that --max-redirs did not allow
it to be set to 0, which then would return an error code on the first
Location: found. Based on Nis' patch, now libcurl supports CURLOPT_MAXREDIRS
set to 0, or -1 for infinity. Added test case 274 to verify.
2005-10-27 22:05:38 +00:00
Gisle Vanem
bd72c5eacf
Added option '-zc' puts const data in code-segment.
...
Added CURL_DISABLE_TFTP; tftp.c doesn't compile as-is.
2005-10-27 12:45:31 +00:00
Daniel Stenberg
9e0882ba98
close the existing socket when trying next IP, as otherwise we leak one!
...
bug #1326306
2005-10-25 13:15:11 +00:00
Daniel Stenberg
c890149c8c
Dima Barsky reported a problem with GnuTLS-enabled libcurl in bug report
...
#1334338 (http://curl.haxx.se/bug/view.cgi?id=1334338 ). When reading an SSL
stream from a server and the server requests a "rehandshake", the current
code simply returns this as an error. I have no good way to test this, but
I've added a crude attempt of dealing with this situation slightly better -
it makes a blocking handshake if this happens. Done like this because fixing
this the "proper" way (that would handshake asynchronously) will require
quite some work and I really need a good way to test this to do such a
change.
2005-10-22 21:05:07 +00:00
Daniel Stenberg
1a1ab2e2e8
"Ofer" reported a problem when libcurl re-used a connection and failed to do
...
it, it could then accidentally actually crash. Presumably, this concerns FTP
connections. http://curl.haxx.se/bug/view.cgi?id=1330310
2005-10-21 21:00:44 +00:00
Daniel Stenberg
715b706caa
Temprimus improved the MSVC makefile so that the static debug SSL libs are
...
linked to the executable and not to the libcurld.lib
http://curl.haxx.se/bug/view.cgi?id=1326676
2005-10-21 19:32:12 +00:00
Daniel Stenberg
bfa9c42c25
Bradford Bruce made the windows resolver code properly return
...
CURLE_COULDNT_RESOLVE_PROXY and CURLE_COULDNT_RESOLVE_HOST on resolving
errors (as documented).
2005-10-21 19:21:19 +00:00
Daniel Stenberg
be9c873a6e
Dave Dribin made libcurl understand and handle cases when the server
...
(wrongly) sends *two* WWW-Authenticate headers for Digest. While this should
never happen in a sane world, libcurl previously got into an infinite loop
when this occurred. Dave added test 273 to verify this.
2005-10-20 20:07:32 +00:00
Daniel Stenberg
021e786c71
Added a dump_addrinfo() function to ease debugging of resolved names. Define
...
DEBUG_ADDRINFO to enable.
2005-10-20 19:40:02 +00:00
Daniel Stenberg
0c6bb8cb66
Temprimus improved the MSVC makefile: "makes a build option available so if
...
you set rtlibcfg=static for the make, then it would build with /MT. The
default behaviour is /MD (the original)."
http://curl.haxx.se/bug/view.cgi?id=1326665
2005-10-20 19:07:33 +00:00
Daniel Stenberg
51369753bb
Reported by 'TemPRImus' in bug 1326665: use the "Multi-Threaded" options even
...
when building the static library. http://curl.haxx.se/bug/view.cgi?id=1326665
2005-10-14 13:22:49 +00:00
Daniel Stenberg
943aea6267
Make sure that the user and domain strings fit in the target buffer before we
...
copy them there.
2005-10-13 07:57:51 +00:00
Daniel Stenberg
b2be6799f2
pass a NULL pointer in the service argument (the second) if the port number
...
was 0 as it seems at least some AIX versions don't like a "0" string there
2005-10-10 18:28:05 +00:00
Gisle Vanem
ea2618fc6f
Added tftp.obj.
2005-10-06 18:47:05 +00:00
Daniel Stenberg
3beb2f6b5d
CURL_TIMECOND_IFMODSINCE actually requires that the remote document has been
...
modded since the given time, so we should compare <= and not just <.
2005-10-05 06:09:20 +00:00
Daniel Stenberg
db83a0ebbc
Michael Wallner reported that the date parser had wrong offset stored for
...
the MEST and CEST time zones.
2005-10-04 18:15:33 +00:00
Gisle Vanem
06c3bec65d
Avoid gcc warning "dereferencing type-punned pointer
...
will break strict-aliasing rules".
2005-10-02 18:22:45 +00:00
Gisle Vanem
e8c3bb45ba
Fix for building with MS Visual-C and single-threaded
...
runtime libs.
2005-10-02 16:52:07 +00:00
Daniel Stenberg
e43217e664
Starting now, the verbose text that goes like "About to connect() to" will
...
now contain the word "proxy" is the hostname is in fact a proxy. This will
help users detect situations when they mistakenly use a proxy.
2005-09-29 11:37:52 +00:00
Daniel Stenberg
b4c53e2cfd
An anonymous submitter filed bug #1299181
...
(http://curl.haxx.se/bug/view.cgi?id=1299181 ) that identified a silly problem
with Content-Range: headers with the 'bytes' keyword written in a different
case than all lowercase! It would cause a segfault!
2005-09-27 09:13:39 +00:00
Daniel Stenberg
a2902de67c
TJ Saunders of the proftpd project identified and pointed out problems with
...
the modified FTPS negotiation change of August 19 2005. Thus, we revert the
change back to pre-7.14.1 status.
2005-09-27 08:46:54 +00:00
Daniel Stenberg
bd5a622400
stricter type usage for time variables to avoid picky compiler warnings
2005-09-21 11:28:40 +00:00
Daniel Stenberg
b6f0aa4394
return an error string for the missing URL case
2005-09-21 06:38:33 +00:00
Daniel Stenberg
58d628c9f8
Uses __stdcall instead of SEC_ENTRY since it seems (at least) mingw doesn't
...
define SEC_ENTRY and thus fails unless this is done!
2005-09-20 08:29:56 +00:00
Daniel Stenberg
1cf798ad14
typecasts added in an attempt to please the picky compilers
2005-09-20 06:51:23 +00:00
Daniel Stenberg
3fe5311967
Dmitry Bartsevich made the SSPI support work on Windows 9x as well
2005-09-19 21:45:16 +00:00
Daniel Stenberg
e7093b3ca8
keep 'socktype' in the connectdata struct and make sure we use that for all
...
protocol sockets even if the resolved address may say otherwise
2005-09-16 21:30:08 +00:00
Daniel Stenberg
97a6d7b1a8
minor changes, the biggest one being using Curl_select()
2005-09-15 20:21:27 +00:00
Daniel Stenberg
0b8ccd0ae7
oops, return error if an error did occur!
2005-09-14 15:04:01 +00:00
Daniel Stenberg
0e7d93858d
added tftp.c
2005-09-07 14:42:15 +00:00
Gisle Vanem
9889a811db
Fix warning about missing initializers.
2005-09-06 15:58:09 +00:00
Gisle Vanem
9e38d882b9
Fix for bind() on Winsock; AF_UNSPEC (0) is illegal.
...
Should we do this for all targets?
2005-09-06 15:43:14 +00:00
Daniel Stenberg
e8b77477c7
sockets are curl_socket_t to build cleaner
2005-09-06 10:39:01 +00:00
Daniel Stenberg
64298e528d
Use SOCK_DGRAM for TFTP. Consider setting this up at one central place, we
...
have this check done on far too many places by now...
2005-09-06 10:37:57 +00:00
Gunter Knauf
4f1465e7c7
minor Makefile fixes.
2005-09-06 00:39:41 +00:00
Daniel Stenberg
a3d776187a
check that bind() returns success
2005-09-04 18:33:20 +00:00
Daniel Stenberg
7e845e7cfd
Added FTP_SKIP_PASV_IP and --ftp-skip-pasv-ip
2005-09-04 05:16:06 +00:00
Daniel Stenberg
56d9624b56
John Kelly added TFTP support to libcurl. A bunch of new error codes was
...
added. TODO: add them to docs. add TFTP server to test suite. add TFTP to
list of protocols whereever those are mentioned.
2005-09-02 15:11:08 +00:00
Daniel Stenberg
2fe3c22108
use it as 'struct addrinfo' so perhaps it builds on mingw again
2005-08-31 06:04:48 +00:00
Daniel Stenberg
64414df27e
Use the more correct BUILDING_LIBCURL define instead of CURLLIB_EXPORTS.
...
Kevin Lussier pointed this out!
2005-08-29 20:56:20 +00:00
Daniel Stenberg
87bbd13899
Igor Polyakov fixed a rather nasty problem with the threaded name resolver
...
for Windows, that could lead to an Access Violation when the multi interface
was used due to an issue with how the resolver thread was and was not
terminated.
2005-08-29 14:23:53 +00:00
Daniel Stenberg
5effe8f336
Simon Josefson brought GNU GSS support
2005-08-29 08:42:45 +00:00
Daniel Stenberg
9853acba66
Moved the GnuTLS related TODO items from lib/TODO.gnutls to the proper
...
docs/TODO
2005-08-29 06:59:44 +00:00
Daniel Stenberg
a4773fcbbb
Toby Peterson added CURLOPT_IGNORE_CONTENT_LENGTH to the library, accessible
...
from the command line tool with --ignore-content-length. This will make it
easier to download files from Apache 1.x (and similar) servers that are
still having problems serving files larger than 2 or 4 GB. When this option
is enabled, curl will simply have to wait for the server to close the
connection to signal end of transfer. I wrote test case 269 that runs a
simple test that this works.
2005-08-24 10:57:28 +00:00
Daniel Stenberg
432dfe2b8f
Fixed CA cert verification using GnuTLS with the default bundle, which
...
previously failed due to GnuTLS not allowing x509 v1 CA certs by default.
2005-08-24 07:40:13 +00:00
Gunter Knauf
f14195f786
enabled statically linked builds.
2005-08-22 02:39:05 +00:00
Daniel Stenberg
710ee3b0e0
Norbert Novotny had problems with FTPS and he helped me work out a patch
...
that made curl run fine in his end. The key was to make sure we do the
SSL/TLS negotiation immediately after the TCP connect is done and not after
a few other commands have been sent like we did previously. I don't consider
this change necessary to obey the standards, I think this server is pickier
than what the specs allow it to be, but I can't see how this modified
libcurl code can add any problems to those who are interpreting the
standards more liberally.
2005-08-19 14:41:09 +00:00
Gunter Knauf
2a94387fc3
minor Makefile fixes.
2005-08-18 16:39:29 +00:00
Daniel Stenberg
90e1a6905a
remove the typecast to long from time_t, since we now store it as curl_off_t
2005-08-17 09:11:27 +00:00
Daniel Stenberg
a676c18502
- Jeff Pohlmeyer found out that if you ask libcurl to load a cookiefile (with
...
CURLOPT_COOKIEFILE), add a cookie (with CURLOPT_COOKIELIST), tell it to
write the result to a given cookie jar and then never actually call
curl_easy_perform() - the given file(s) to read was never read but the
output file was written and thus it caused a "funny" result.
- While doing some tests for the bug above, I noticed that Firefox generates
large numbers (for the expire time) in the cookies.txt file and libcurl
didn't treat them properly. Now it does.
2005-08-17 08:55:43 +00:00
Gunter Knauf
362912ff83
added curl_mvsnprintf to the export list; I appened to the end cause of the numbering ...
2005-08-16 20:12:58 +00:00
Gunter Knauf
46ff13f243
added curl_mvsnprintf to the export list.
2005-08-16 20:11:25 +00:00
Daniel Stenberg
35110eca73
James Bursa identified a libcurl HTTP bug and a good way to repeat it. If a
...
site responds with bad HTTP response that doesn't contain any header at all,
only a response body, and the write callback returns 0 to abort the
transfer, it didn't have any real effect but the write callback would be
called once more anyway.
2005-08-13 21:28:46 +00:00
Daniel Stenberg
84c4d96e71
removed old debug left-over infof() call
2005-08-11 21:41:11 +00:00
Daniel Stenberg
6d14a80608
Added comment about strtoimax()
2005-08-11 20:42:02 +00:00
Daniel Stenberg
20b17d6b04
the debug callback was called with CURLINFO_TEXT with the data size one
...
too big
2005-08-10 22:57:14 +00:00
Gunter Knauf
0ae6ff9f72
some minor Makefile fixes for SSL.
2005-08-10 19:19:25 +00:00
Daniel Stenberg
6c157a404b
Christopher R. Palmer fixed the offsets used for date parsings when the time
...
zone name of a daylight savings time was used. For example, PDT vs PDS. This
flaw was introduced with the new date parser (11 sep 2004 - 7.12.2).
Fortunately, no web server or cookie string etc should be using such time
zone names thus limiting the effect of this bug.
2005-08-09 21:59:31 +00:00
Daniel Stenberg
493d6033aa
Jon Grubbs filed bug report #1249962 which identified a problem with NTLM on a
...
HTTP proxy if an FTP URL was given. libcurl now properly switches to pure HTTP
internally when an HTTP proxy is used, even for FTP URLs. The problem would
also occur with other multi-pass auth methods.
2005-08-07 22:59:06 +00:00
Daniel Stenberg
aeb04136f7
Don't prevent FTPS:// through a http proxy, as we cannot know if it works or
...
not!
2005-08-07 21:39:44 +00:00
Daniel Stenberg
e358a24a75
reset the numcookies counter too (I missed it in the previous commit)
2005-07-28 21:53:09 +00:00
Daniel Stenberg
ec3f269d1f
now strdups the cookielist inpointer before passed on, as the cookie function
...
modifies it
2005-07-28 21:50:34 +00:00
Daniel Stenberg
1c388a52a5
curl standard indent/format
2005-07-28 21:49:58 +00:00
Daniel Stenberg
726b9e2240
If any of the options CURLOPT_HTTPGET, CURLOPT_POST and CURLOPT_HTTPPOST is
...
set to 1, CURLOPT_NOBODY will now automatically be set to 0.
2005-07-27 22:29:50 +00:00
Daniel Stenberg
2236ba0d20
Peteris Krumins added CURLOPT_COOKIELIST and CURLINFO_COOKIELIST, which is a
...
simple interface to extracting and setting cookies in libcurl's internal
"cookie jar". See the new cookie_interface.c example code.
2005-07-27 22:17:14 +00:00
Daniel Stenberg
463c0f7096
disabling HTTP should also nullify this function call
2005-07-27 21:44:43 +00:00
Dan Fandrich
6e87cf5b30
Fixed some typos in output messages.
2005-07-21 22:18:35 +00:00
Daniel Stenberg
4922904991
Simplified the code within curl_easy_perform() that calls Curl_perform().
...
Pointed out by Bjorn Reese.
2005-07-17 12:44:11 +00:00
Daniel Stenberg
16bbd13af7
Diego Casorran patches to make (lib)curl build fine on Amiga again
2005-07-13 18:06:40 +00:00
Daniel Stenberg
465e19dbe9
Adrian Schuur added trailer support in the chunked encoding stream. The
...
trailer is then sent to the normal header callback/stream.
2005-07-12 18:15:34 +00:00
Daniel Stenberg
c3a826fdce
correction for the 407 with response-body case
2005-07-05 22:07:34 +00:00
Gisle Vanem
c5d6a42abf
Update copyright.
2005-07-05 18:07:55 +00:00
Daniel Stenberg
d49c144297
Gisle Vanem came up with a nice little work-around for bug #1230118 . It
...
seems the Windows (MSVC) libc time functions may return data one hour off if
TZ is not set and automatic DST adjustment is enabled. This made
curl_getdate() return wrong value, and it also concerned internal cookie
expirations etc.
2005-07-05 14:57:41 +00:00
Daniel Stenberg
20005a83d2
Andrew Bushnell provided enough info for me to tell that we badly needed to
...
fix the CONNECT authentication code with multi-pass auth methods (such as
NTLM) as it didn't previously properly ignore response-bodies - in fact it
stopped reading after all response headers had been received. This could
lead to libcurl sending the next request and reading the body from the first
request as response to the second request. (I also renamed the function,
which wasn't strictly necessary but...)
The best fix would to once and for all make the CONNECT code use the
ordinary request sending/receiving code, treating it as any ordinary request
instead of the special-purpose function we have now. It should make it
better for multi-interface too. And possibly lead to less code...
Added test case 265 for this. It doesn't work as a _really_ good test case
since the test proxy is too stupid, but the test case helps when running the
debugger to verify.
2005-07-03 22:25:15 +00:00
Daniel Stenberg
701de67b79
use %p to printf pointers since %x doesn't work properly on tru64 for this
...
(and besides, we should be using the same %-code for all pointers)
2005-06-30 13:30:23 +00:00
Daniel Stenberg
883479f01e
enable memory debugging on tru64 with ipv6 support by doing a little different
...
defining, since the system headers themselves redefine getaddrinfo
2005-06-30 13:28:58 +00:00
Daniel Stenberg
3b60bb7259
David Shaw's fix that unifies proxy string treatment so that a proxy given
...
with CURLOPT_PROXY can use a http:// prefix and user + password. The user
and password fields are now also URL decoded properly.
Test case 264 added to verify.
2005-06-22 22:24:10 +00:00
Gisle Vanem
bb0aba34fa
Ensure thread handle is closed too.
2005-06-14 14:47:21 +00:00
Daniel Stenberg
300b4a9158
Todd Kulesza reported a flaw in the proxy option, since a numerical IPv6
...
address was not possible to use. It is now, but requires it written
RFC2732-style, within brackets - which incidently is how you enter numerical
IPv6 addresses in URLs. Test case 263 added to verify.
2005-05-31 13:03:26 +00:00
Daniel Stenberg
a7846189cd
Eric Cooper reported about a problem with HTTP servers that responds with
...
binary zeroes within the headers. They confused libcurl to do wrong so the
downloaded headers become incomplete. The fix is now verified with test case
262.
2005-05-29 22:30:48 +00:00
Daniel Stenberg
4762995d1f
avoid the sensitive word as it looks bad in some people's eyes
2005-05-27 11:39:07 +00:00
Daniel Stenberg
d1235ff058
provide the proper copyright texts for these
2005-05-26 20:56:25 +00:00
Daniel Stenberg
e7012a515c
Now allow TYPE responses to be any 2xx code, and log if it isn't 200.
2005-05-24 09:39:56 +00:00
Daniel Stenberg
eff36caea8
additional fix for the malformed URL fix of yday
2005-05-19 07:21:18 +00:00
Daniel Stenberg
4a091bbd8a
Bug report #1204435 identified a problem with malformed URLs like
...
"http://somehost?data " as it added a slash too much in the request ("GET
/?data/"...). Added test case 260 to verify.
2005-05-18 20:01:01 +00:00
Daniel Stenberg
dd7b6aef39
The configure check for strerror_r() failed to detect the proper API at
...
times, like on my HP-UX 10.20 tests. And then lib/strerror.c badly assumed
the glibc version if the posix define wasn't set (since it _had_ found a
strerror_r).
2005-05-18 13:24:23 +00:00
Daniel Stenberg
ede9fb4fcc
check if getsockname() returns failure before using the address it provides
2005-05-17 09:18:17 +00:00
Daniel Stenberg
723aef71e8
reduced typecasts, from two to one
2005-05-17 09:15:21 +00:00
Daniel Stenberg
944af98be6
fix warning about redefined symbol
2005-05-14 21:15:36 +00:00
Gisle Vanem
95fe8372e8
Updated generated dependencies.
2005-05-14 06:04:21 +00:00
Gisle Vanem
ecdcb0ef67
Some patches for (a stricter/smarter) gcc 4.0 and
...
warnings like:
'x' may be used uninitialized in this function.
2005-05-14 06:00:40 +00:00
Gisle Vanem
6a04a03eb5
'ssize_t' seems to be a gcc 4.x built-in.
2005-05-14 05:59:26 +00:00
Gisle Vanem
0c96056a94
Change for systems with >1 ways of setting (non-)blocking
...
mode. (djgpp/Watt-32 has 3 ways). Should rewrite this using
"#elif ..", but maybe there is still broken cpp around?
2005-05-14 05:58:52 +00:00
Daniel Stenberg
3f23e8443e
oops, found by bug reported in bug report #1200661
2005-05-12 13:44:25 +00:00
Daniel Stenberg
a00f9b093c
spell
2005-05-12 12:53:02 +00:00
Daniel Stenberg
5f538ce3f8
typecast to fix warning on 64bit systems
2005-05-12 08:51:30 +00:00
Daniel Stenberg
5d9fc28fa7
Modified the default HTTP headers used by libcurl:
...
A) Normal non-proxy HTTP:
- no more "Pragma: no-cache" (this only makes sense to proxies)
B) Non-CONNECT HTTP request over proxy:
- "Pragma: no-cache" is used (like before)
- "Proxy-Connection: Keep-alive" (for older style 1.0-proxies)
C) CONNECT HTTP request over proxy:
- "Host: [name]:[port]"
- "Proxy-Connection: Keep-alive"
2005-05-11 09:52:59 +00:00
Daniel Stenberg
a90e33ad71
Hm, this doesn't feel right. The error bits returned from Curl_select() can
...
be returned at times when we want to ignore them. Test case 160 fails on Linux,
so I modify the comparison to check for _only_ the error bit set...
2005-05-10 23:02:37 +00:00
Daniel Stenberg
62ab21ce7d
me stupid, errno is not set for mere select()-exceptions
2005-05-10 22:48:26 +00:00
Daniel Stenberg
cc8e8db1e5
include protos to fix warnings
2005-05-10 22:46:24 +00:00
Daniel Stenberg
b19cba2016
If Curl_select() returns with the error bit set, bail out.
2005-05-10 22:44:08 +00:00
Daniel Stenberg
708ed6fded
silence compiler warnings
2005-05-08 22:45:01 +00:00
Daniel Stenberg
5c30fa50d6
fix warnings about unused variables for non-debug builds
2005-05-07 20:41:16 +00:00
Daniel Stenberg
fc33c424d9
fix
2005-05-07 20:28:39 +00:00
Daniel Stenberg
9c5f79c56a
DEBUGF() is a new conveniant macro to add infof() calls (or similar) for
...
debug builds only. Made the ftp code use it on several places.
2005-05-07 13:57:07 +00:00
Daniel Stenberg
274842ec41
use calloc instead of malloc to save a call to memset()
2005-05-05 06:04:00 +00:00
Daniel Stenberg
2179e6e797
prevent memory leak when built SSL disabled
2005-05-04 14:52:51 +00:00
Daniel Stenberg
44985e8884
improved failf() error messages
2005-05-02 22:53:55 +00:00
Daniel Stenberg
11bdba0007
corrected copyright year
2005-05-02 14:33:07 +00:00
Daniel Stenberg
a31ddd363b
Now configure checks for struct sockaddr_storage and the ftp code tries
...
to survive without it if not found. AIX 4.3 targetted adjustment.
2005-05-02 11:56:15 +00:00
Daniel Stenberg
41e6292e7b
there cannot be chunked problem when no_body (HEAD) is true since without
...
body there is nothing chunked-encoded!
2005-04-30 23:07:38 +00:00
Daniel Stenberg
ae1d6f29d9
singleipconnect() returns a socket descriptor, not a CURLcode (but perhaps
...
we should make it do that...)
2005-04-30 15:16:39 +00:00
Daniel Stenberg
6b1220b61d
Cory Nelson's work on nuking compiler warnings when building on x64 with
...
VS2005.
2005-04-26 13:08:49 +00:00
Daniel Stenberg
9d7330d879
Since Windows doesn't have/use the POSIX prototype for send() and recv(), we
...
typecast the third argument in the macros to avoid compiler warnings.
2005-04-26 13:08:18 +00:00
Daniel Stenberg
26a5954fa0
adding a bunch of comments for each #endif
2005-04-26 10:55:52 +00:00
Daniel Stenberg
01165e08e0
Fred New reported a bug where we used Basic auth and user name and password in
...
.netrc, and when following a Location: the subsequent requests didn't properly
use the auth as found in the netrc file. Added test case 257 to verify my fix.
2005-04-25 21:39:48 +00:00
Daniel Stenberg
a8ff0a21bf
Based on feedback from Cory Nelson, I added some preprocessor magic in
...
*/setup.h and */config-win32.h to build fine with VS2005 on x64.
2005-04-24 22:25:04 +00:00
Daniel Stenberg
200ac588cc
Dave Dribin: set CURL_STATICLIB when it builds static library variants.
2005-04-22 21:16:22 +00:00
Daniel Stenberg
543fbe14ee
Fixed the CN extraction
2005-04-22 20:56:26 +00:00
Daniel Stenberg
76c7c694c5
modified this year
2005-04-22 20:48:07 +00:00
Gunter Knauf
8f6c2f87c8
changes for building with IPV6 and LDAP.
2005-04-20 23:41:25 +00:00
Daniel Stenberg
f30e8b11eb
prevent compiler warning
2005-04-19 23:38:57 +00:00
Daniel Stenberg
8bd6d6a4de
added typecast when converting from long to unsigned short, to prevent compiler warning
2005-04-19 23:37:45 +00:00
Daniel Stenberg
5f0366c2cb
only define _REENTRANT if not already defined, and only in setup.h
2005-04-19 23:19:23 +00:00
Daniel Stenberg
63d109f7be
Olivier reported that even though he used CURLOPT_PORT, libcurl clearly still
...
used the default port. He was right. I fixed the problem and added the test
cases 521, 522 and 523 to verify the fix.
2005-04-18 19:41:04 +00:00
Daniel Stenberg
c904b6b5bf
Toshiyuki Maezawa reported that when doing a POST with a read callback,
...
libcurl didn't properly send an Expect: 100-continue header. It does now.
2005-04-18 17:14:58 +00:00
Daniel Stenberg
e9d068b913
oops, only negative numbers are errors
2005-04-13 21:17:05 +00:00
Daniel Stenberg
316adac511
don't bail out just because the ca file has a problem, it might be OK
2005-04-13 12:38:01 +00:00
Daniel Stenberg
4e26b2a65b
fix compiler warning
2005-04-13 06:52:03 +00:00
Daniel Stenberg
c13a3d7b84
Provides an unconditional strlcat() proto even if strlcat() was found by
...
configure. An attempt to fix warnings when we build and the strlcat() function
is provided by one if the libs (gss or krb4) since then we have no protos
for it in a system header.
2005-04-12 07:56:57 +00:00
Daniel Stenberg
f09e479fd6
Blah, revert my removal of the extra check since the problem is there for real.
...
Archived thread of the help-gnutls mailing list regarding this problem:
http://lists.gnu.org/archive/html/help-gnutls/2005-04/msg00000.html
(and I _am_ sorry for my confused behaviour on this problem.)
2005-04-09 22:33:14 +00:00
Daniel Stenberg
80fe93bc33
OK, I must've been halucinating or something because I no longer see the
...
bug I thought I saw before when I changed this...!
2005-04-09 21:38:14 +00:00
Daniel Stenberg
fb3c85ab2f
fixed the 304 response-with-content-length problem reported by Cory Nelson
2005-04-08 16:59:13 +00:00
Daniel Stenberg
2fc70e2c5d
re-arrange some code to prevent warnings on unreachable code
2005-04-08 09:25:48 +00:00
Marty Kuhrt
37a547842b
cast the call to Curl_inet_ntop for DECC compiler squawk
2005-04-08 05:01:40 +00:00
Daniel Stenberg
b9f1d43921
Unfortunately, if a ca file name is set the function fails for whatever reason
...
(missing file, bad file, etc), gnutls will no longer handshake properly but it
just loops forever. Therefore, we must return error if we get an error when
setting the CA cert file name. This is not the same behaviour as with OpenSSL.
Question/report posted to the help-gnutls mailing list, April 8 2005.
2005-04-07 22:47:43 +00:00
Daniel Stenberg
bec6423c02
one down
2005-04-07 22:14:22 +00:00
Daniel Stenberg
14d9b56937
cut 'n paste error
2005-04-07 21:12:09 +00:00
Daniel Stenberg
1c3766eb46
GnuTLS updates
2005-04-07 21:10:31 +00:00
Daniel Stenberg
2085f133d6
added new files
2005-04-07 20:56:04 +00:00
Daniel Stenberg
2a045dfceb
fixed to build after the GnuTLS fixes
2005-04-07 20:36:48 +00:00
Daniel Stenberg
6e61939382
GnuTLS support added. There's now a "generic" SSL layer that we use all over
...
internally, with code provided by sslgen.c. All SSL-layer-specific code is
then written in ssluse.c (for OpenSSL) and gtls.c (for GnuTLS).
As far as possible, internals should not need to know what SSL layer that is
in use. Building with GnuTLS currently makes two test cases fail.
TODO.gnutls contains a few known outstanding issues for the GnuTLS support.
GnuTLS support is enabled with configure --with-gnutls
2005-04-07 15:27:13 +00:00
Daniel Stenberg
758d9fe852
too late hacking error
2005-04-05 21:14:59 +00:00
Daniel Stenberg
ee44eec3e1
Christophe Legry's fix to grok time-conditoned uploads
2005-04-05 20:59:12 +00:00
Daniel Stenberg
9b3c2b6ae2
kill warnings
2005-04-04 21:23:04 +00:00
Daniel Stenberg
833b6df969
Marcelo Juchem's improvements
2005-04-04 13:21:03 +00:00
Gisle Vanem
0b45431139
hostthre.c: destroy_thread_data() made public. Called
...
from url.c: Curl_disconnect().
2005-04-04 12:30:03 +00:00
Daniel Stenberg
74816fed6c
Hardeep Singh reported a problem doing HTTP POST with Digest. (It was actually
...
also affecting NTLM and Negotiate.) It turned out that if the server responded
with 100 Continue before the initial 401 response, libcurl didn't take care of
the response properly. Test case 245 and 246 added to verify this.
2005-04-03 22:46:25 +00:00
Daniel Stenberg
f96fadc074
fixed bad comment, pointed out by Marcelo Juchem
2005-03-31 20:34:24 +00:00
Daniel Stenberg
ab4086bc24
Updated the copyright year since changes have been this year.
2005-03-31 07:02:02 +00:00
Daniel Stenberg
158588640a
Don't close the connection if we're in a known negotiation mode and we won't
...
send any data anyway. Probably the bug Tom Moers noticed.
2005-03-29 12:28:25 +00:00
Daniel Stenberg
371ef80dc3
When doing FTP-SSL, advance to the next state properly when the response to
...
AUTH has been received successfully.
2005-03-29 11:43:02 +00:00
Daniel Stenberg
84b4e9ff7c
Fixed the FTP response reader function to properly deal with responses split
...
up in several chunks when read.
2005-03-29 11:35:25 +00:00
Daniel Stenberg
8a076d1dba
Based on Augustus Saunders' comments and findings, the HTTP output auth
...
function was fixed to use the proper proxy authentication when multiple ones
were added as accepted. test 239 and test 243 were added to repeat the
problems and verify the fixes.
2005-03-28 22:19:31 +00:00
Dan Fandrich
6c6dda1b74
Fixed typo.
2005-03-22 01:24:27 +00:00
Daniel Stenberg
8817779f23
Modified the VALID_SOCK() macro to become VERIFY_SOCK() instead. It is slighly
...
more involved, but should hopefully not generate any compiler warnings on
win32 systems (that can't check the socket based on the numeric).
2005-03-21 22:34:07 +00:00
Daniel Stenberg
c85a77e0b1
removed a (fairly useless) debug output just to compile without warning
2005-03-20 12:46:11 +00:00
Daniel Stenberg
38f07ce0fb
fix compiler warning
2005-03-19 00:44:55 +00:00
Daniel Stenberg
5840c8cb70
fix by Kyrre Kristiansen
2005-03-18 10:16:49 +00:00
Dan Fandrich
38f797ccd6
Use the proper macro to do uClibc detection.
2005-03-17 20:32:59 +00:00
Daniel Stenberg
553c5a7501
include inet_pton.h
2005-03-17 19:12:15 +00:00
Daniel Stenberg
8b80ac2877
use Curl_inet_pton(), not inet_pton().
2005-03-17 07:40:15 +00:00
Dan Fandrich
f5cdac38bd
Removed references to config-vms.h from the makefiles.
2005-03-16 23:09:39 +00:00
Dan Fandrich
760565dcad
Removed old VMS config files (on behalf of Marty Kuhrt). The VMS build
...
scripts use the version in packages/vms/
2005-03-16 22:27:05 +00:00
Daniel Stenberg
61133545f6
- Tru64 and some IRIX boxes seem to not like test 237 as it is. Their
...
inet_addr() functions seems to use &255 on all numericals in a ipv4 dotted
address which makes a different failure... Now I've modified the ipv4
resolve code to use inet_pton() instead in an attempt to make these systems
better detect this as a bad IP address rather than creating a toally bogus
address that is then passed on and used.
2005-03-16 22:01:39 +00:00
Dan Fandrich
bf87d13f5b
Fixed some compiler warnings I should have noticed before.
2005-03-16 02:25:12 +00:00
Dan Fandrich
efaf688650
Fixed ftp support with uClibc due to differing inet_ntoa_r() behaviour.
2005-03-15 21:00:46 +00:00
Daniel Stenberg
a357f77c4c
nonsense change for(;;) => while(1) just to prevent gcc from warning on
...
never executed code when -Wunreachable-code is used
2005-03-15 07:48:45 +00:00
Daniel Stenberg
d5bdd2b2f9
prevent compiler warning
2005-03-15 07:47:59 +00:00
Daniel Stenberg
ec4e653c6f
hushing up more warnings
2005-03-14 15:51:10 +00:00
Daniel Stenberg
3916d1e6cb
silence compiler warnings for mingw win32 builds --enable-debug
2005-03-14 15:43:23 +00:00
Gisle Vanem
76c24a0d82
Avoid "unused variable" warnings.
2005-03-14 09:37:08 +00:00
Daniel Stenberg
de8947f92f
security.h is removed
2005-03-14 07:46:42 +00:00
Daniel Stenberg
34865ffb4a
include security.h with lowercase s to work on cross-compiled mingw
2005-03-14 00:01:30 +00:00
Daniel Stenberg
62970da675
Removed security.h since it shadows an include file mingw needs when building
...
for SSPI support. The contents of the file has been moved into the krb4.h file.
2005-03-14 00:00:45 +00:00
Gisle Vanem
88a4dc2795
Swap <security.h> and <sspi.h> (needed for MingW).
2005-03-12 17:31:15 +00:00
Daniel Stenberg
84bc23b92f
curl_version_info() returns the feature bit CURL_VERSION_SSPI
2005-03-11 15:10:36 +00:00
Dan Fandrich
fb9ae9d0e2
Fixed some compiler warnings.
2005-03-11 05:49:04 +00:00
Dan Fandrich
205f8b266c
Fixed LDAP library file name bug (KNOWN_BUGS #1 ). configure now auto-detects
...
the correct dynamic library names by default, and provides override switches
--with-ldap-lib, --with-lber-lib and --without-lber-lib. Added
CURL_DISABLE_LDAP to platform-specific config files to disable LDAP
support on those platforms that probably don't have dynamic OpenLDAP
libraries available to avoid compile errors.
2005-03-11 05:28:07 +00:00
Daniel Stenberg
d1d35ba85f
Christopher R. Palmer made it possible to build libcurl with the
...
USE_WINDOWS_SSPI on Windows, and then libcurl will be built to use the native
way to do NTLM. SSPI also allows libcurl to pass on the current user and its
password in the request.
2005-03-10 23:15:29 +00:00
Daniel Stenberg
0472629222
As reported by 'nodak sodak' we should check for a NULL pointer before
...
referencing the proxy name pointer.
2005-03-09 22:13:52 +00:00
Daniel Stenberg
b7ffc6bb45
remove old printf() debug leftover
2005-03-08 22:21:59 +00:00
Daniel Stenberg
8a96aec567
mktime() returns a time_t. time_t is often 32 bits, even on many architectures
...
that feature 64 bit 'long'.
Some systems have 64 bit time_t and deal with years beyond 2038. However, even
some of the systems with 64 bit time_t returns -1 for dates beyond 03:14:07
UTC, January 19, 2038. (Such as AIX 5100-06)
2005-03-08 16:31:56 +00:00
Daniel Stenberg
702664e959
Dominick Meglio reported that using CURLOPT_FILETIME when transferring a FTP
...
file got a Last-Modified: header written to the data stream, corrupting the
actual data. This was because some conditions from the previous FTP code was
not properly brought into the new FTP code. I fixed and I added test case 520
to verify. (This bug was introduced in 7.13.1)
2005-03-08 08:09:14 +00:00
Daniel Stenberg
aa47ac4c06
Added test case 235 that makes a resumed upload of a file that isn't present
...
on the remote side. This then converts the operation to an ordinary STOR
upload. This was requested/pointed out by Ignacio Vazquez-Abrams.
It also proved (and I fixed) a bug in the newly rewritten ftp code (and
present in the 7.13.1 release) when trying to resume an upload and the servers
returns an error to the SIZE command. libcurl then loops and sends SIZE
commands infinitely.
2005-03-04 23:52:06 +00:00
Dan Fandrich
b01151e81c
Reduced the length of data read from the random entropy file.
2005-03-04 22:36:56 +00:00
Dan Fandrich
67bd6f9ccd
Don't try to read the whole of the random file because when /dev/urandom is
...
used, it slows initialization too much reading an infinitely long file!
2005-03-04 20:10:29 +00:00
Daniel Stenberg
6f752c64bc
Dave Dribin made it possible to set CURLOPT_COOKIEFILE to "" to activate
...
the cookie "engine" without having to provide an empty or non-existing file.
2005-03-04 00:26:50 +00:00
Daniel Stenberg
ccb7950c4c
killed trailing whitespace
2005-03-04 00:24:52 +00:00
Daniel Stenberg
750e771376
killed trailing whitespace
2005-03-04 00:14:45 +00:00
Dan Fandrich
0ddab51ad8
Fix for a base64 decode heap buffer overflow vulnerability.
2005-02-28 23:54:17 +00:00
Dan Fandrich
9798432f56
Fixed some compiler warnings. Fixed a low incidence memory leak in the test server.
2005-02-24 18:54:23 +00:00
Daniel Stenberg
f8b4ba80e0
krb4 fixed
2005-02-22 12:20:30 +00:00
Daniel Stenberg
527f70e540
Curl_base64_decode() now returns an allocated buffer
2005-02-22 12:10:30 +00:00
Daniel Stenberg
19f66c7575
Thanks for the notification iDEFENCE. We are the "initial vendor" and we sure
...
got no notification, no mail, no nothing.
You didn't even bother to mail us when you went public with this. Cool.
NTLM buffer overflow fix, as reported here:
http://www.securityfocus.com/archive/1/391042
2005-02-22 07:44:14 +00:00
Daniel Stenberg
5ba188ab2d
Ralph Mitchell reported a flaw when you used a proxy with auth, and you
...
requested data from a host and then followed a redirect to another
host. libcurl then didn't use the proxy-auth properly in the second request,
due to the host-only check for original host name wrongly being extended to
the proxy auth as well. Added test case 233 to verify the flaw and that the
fix removed the problem.
2005-02-18 23:53:07 +00:00
Daniel Stenberg
176981b529
close the socket properly when returning error due to failing localbind
...
Bug report #1124588 by David
2005-02-17 14:45:03 +00:00
Daniel Stenberg
ac022b2e30
Christopher R. Palmer reported a problem with HTTP-POSTing using "anyauth"
...
that picks NTLM. Thanks to David Byron letting me test NTLM against his
servers, I could quickly repeat and fix the problem. It turned out to be:
When libcurl POSTs without knowing/using an authentication and it gets back a
list of types from which it picks NTLM, it needs to either continue sending
its data if it keeps the connection alive, or not send the data but close the
connection. Then do the first step in the NTLM auth. libcurl didn't send the
data nor close the connection but simply read the response-body and then sent
the first negotiation step. Which then failed miserably of course. The fixed
version forces a connection if there is more than 2000 bytes left to send.
2005-02-16 14:31:23 +00:00
Daniel Stenberg
0a3065a2f2
Rename Curl_pretransfersec() to *_second_connect() since it does not just
...
do pretransfer stuff like Curl_pretransfer().
2005-02-14 09:30:40 +00:00
Daniel Stenberg
b98faaa8c0
Fixed bad krb4 code. It always tried to use krb4 if built enabled.
2005-02-11 22:50:57 +00:00
Daniel Stenberg
e7cefd684b
Removed all uses of strftime() since it uses the localised version of the
...
week day names and month names and servers don't like that.
2005-02-11 00:03:49 +00:00
Daniel Stenberg
17d61e4f29
typecast assign to ftpport from int to prevent warnings
2005-02-10 07:45:26 +00:00
Daniel Stenberg
446b9467da
init fix for non-SSL builds
2005-02-10 07:45:08 +00:00
Daniel Stenberg
8c83422fe2
David Byron identified the lack of SSL_pending() use, and this is my take
...
at fixing this issue.
2005-02-09 23:09:12 +00:00
Daniel Stenberg
61a1e3cd01
better error checking and SSL init by David Byron
2005-02-09 23:04:51 +00:00
Daniel Stenberg
89cac6f25c
prevent a compiler warning
2005-02-09 22:47:57 +00:00
Gisle Vanem
32d76a5b57
Set 'bits.close' in case of malloc fail.
...
Don't free 'lud_dn' twice in case curl_unescape()
fails.
2005-02-09 14:28:35 +00:00
Gisle Vanem
f5394cccb1
Use CURL_SOCKET_BAD.
2005-02-09 14:01:15 +00:00
Gisle Vanem
64dd9c7656
Handle CURLE_LOGIN_DENIED in strerror.c.
...
For ftp only?
2005-02-09 13:59:40 +00:00
Daniel Stenberg
16ae0c6466
FD_SET can be big macro, use braces
2005-02-09 13:47:35 +00:00
Daniel Stenberg
6a2e21ec8c
FTP code turned into state machine. Not completely yet, but a good start.
...
The tag 'before_ftp_statemachine' was set just before this commit in case
of future need.
2005-02-09 13:06:40 +00:00
Gisle Vanem
120f17ce04
Replace LF with CRLF. Ref RFC-2229, sec 2.3:
...
"Each command line must be terminated by a CRLF".
2005-02-09 11:50:41 +00:00
Daniel Stenberg
41def21f91
ares_gethostbyname wants a 'ares_host_callback' in the 4th argument
2005-02-08 19:03:27 +00:00
Gisle Vanem
d118312922
Curl_addrinfo?_callback() and addrinfo_callback() now returns
...
CURLE_OK or CURLE_OUT_OF_MEMORY.
Add typecast in hostares.c.
2005-02-08 12:36:13 +00:00
Gisle Vanem
82b93e4945
Don't free too much in freedirs() if realloc() fails.
2005-02-08 12:32:28 +00:00
Daniel Stenberg
e36fb1ecda
Curl_wait_for_resolv() no longer disconnects on failure, but leaves that
...
operation to the caller. Disconnecting has the disadvantage that the conn
pointer gets completely invalidated and this is not handled on lots of places
in the code.
2005-02-08 07:36:57 +00:00
Dan Fandrich
e4a1788614
Fix for a bug report that compressed files that are exactly 64 KiB long
...
produce a zlib error.
2005-02-07 19:12:37 +00:00
Gisle Vanem
7b23eff9cf
Preserve previous status in Curl_http_done().
2005-02-06 12:43:40 +00:00
Daniel Stenberg
29350b363b
Eric Vergnaud found a use of an uninitialized variable
2005-02-04 23:43:44 +00:00
Daniel Stenberg
83c470a443
David Byron pointed out that this -1 on the buffer size is pointless since
...
the buffer is already BUFSIZE +1 one big to fit the extra trailing zero. This
change is reported to fix David's weird SSL problem...
2005-02-04 13:42:41 +00:00
Daniel Stenberg
686d767053
if the DO operation returns failure, bail out and close down nicely to
...
prevent memory leakage
2005-01-30 22:54:06 +00:00
Daniel Stenberg
e6034ea299
Use calloc() to save us the memset() call and terminate conn->host.name
...
properly, to avoid reading uninited variables when using file:// (valgrind)
2005-01-30 12:42:15 +00:00
Daniel Stenberg
9a820d7a98
include "url.h" for the Curl_safefree() proto
2005-01-29 22:38:45 +00:00
Daniel Stenberg
8dbaf534c8
Using the multi interface, and doing a requsted a re-used connection that
...
gets closed just after the request has been sent failed and did not re-issue
a request on a fresh reconnect like the easy interface did. Now it does!
(define CURL_MULTIEASY, run test case 160)
2005-01-29 22:31:06 +00:00
Daniel Stenberg
91f483c591
Define CURL_MULTIEASY when building this, to use my new curl_easy_perform()
...
that uses the multi interface to run the request. It is a great testbed for
the multi interface and I believe we shall do it this way for real in the
future when we have a successor to curl_multi_fdset().
2005-01-29 22:26:38 +00:00
Daniel Stenberg
c4ff5eb0ca
conn->ip_addr MUST NOT be used on re-used connections
2005-01-29 13:07:16 +00:00
Daniel Stenberg
59b45a90cc
multi interface: when a request is denied due to "Maximum redirects followed"
...
libcurl leaked the last Location: URL.
2005-01-29 12:01:20 +00:00
Daniel Stenberg
f661475962
Connect failures with the multi interface was often returned as "connect()
...
timed out" even though the reason was different. Fixed this problem by not
setting this timeout to zero when using multi.
2005-01-28 23:21:24 +00:00
Daniel Stenberg
4551e7ce49
KNOWN_BUGS #17 fixed. A DNS cache entry may not remain locked between two
...
curl_easy_perform() invokes. It was previously unlocked at disconnect, which
could mean that it remained locked between multiple transfers. The DNS cache
may not live as long as the connection cache does, as they are separate.
To deal with the lack of DNS (host address) data availability in re-used
connections, libcurl now keeps a copy of the IP adress as a string, to be able
to show it even on subsequent requests on the same connection.
2005-01-28 22:14:48 +00:00
Daniel Stenberg
064bc3ecbc
Stephen More pointed out that CURLOPT_FTPPORT and the -P option didn't work
...
when built ipv6-enabled. I've now made a fix for it. Writing test cases for
custom port strings turned too tricky so unfortunately there's none.
2005-01-28 08:26:36 +00:00
Daniel Stenberg
177dbc7be0
Ian Ford asked about support for the FTP command ACCT, and I discovered it is
...
present in RFC959... so now (lib)curl supports it as well. --ftp-account and
CURLOPT_FTP_ACCOUNT set the account string. (The server may ask for an account
string after PASS have been sent away. The client responds with "ACCT [account
string]".) Added test case 228 and 229 to verify the functionality. Updated
the test FTP server to support ACCT somewhat.
2005-01-25 22:13:12 +00:00
Daniel Stenberg
043d70fcdf
Use plain structs and not typedef'ed ones in the hash and linked-list code.
2005-01-25 00:06:29 +00:00
Daniel Stenberg
7e42cb61f7
FTP third transfer support overhaul. See CHANGES for details.
2005-01-21 09:32:32 +00:00
Daniel Stenberg
3050ae57c0
Stephan Bergmann made libcurl return CURLE_URL_MALFORMAT if an FTP URL
...
contains %0a or %0d in the user, password or CWD parts. (A future fix would
include doing it for %00 as well - see KNOWN_BUGS for details.) Test case 225
and 226 were added to verify this
2005-01-19 21:56:02 +00:00
Gisle Vanem
06ad5be3af
Don't copy 'stderr' for Win-CE in IPv6 code. Don't call
...
GetCurrentProcess() twice; use a local variable.
2005-01-19 10:20:55 +00:00
Daniel Stenberg
a0c8b9bc68
Stephan Bergmann pointed out two flaws in libcurl built with HTTP disabled:
...
1) the proxy environment variables are still read and used to set HTTP proxy
2) you couldn't disable http proxy with CURLOPT_PROXY (since the option was
disabled)
2005-01-19 09:36:44 +00:00
Daniel Stenberg
b1080f7c9a
Cody Jones' enhanced version of Samuel Daz Garca's MSVC makefile patch.
2005-01-18 10:17:34 +00:00
Daniel Stenberg
e0bea7d541
Alex aka WindEagle pointed out that when doing "curl -v dictionary.com", curl
...
assumed this used the DICT protocol. While guessing protocols will remain
fuzzy, I've now made sure that the host names must start with "[protocol]."
for them to be a valid guessable name. I also removed "https" as a prefix that
indicates HTTPS, since we hardly ever see any host names using that.
2005-01-16 08:51:52 +00:00
Gisle Vanem
f5b8a26d9a
errrno can by freak accident become EINTR on DOS or
...
Windows (unrelated to select). select() can never set errno
to EINTR on Windows.
2005-01-15 09:26:07 +00:00
Daniel Stenberg
4d1f3d3cd0
Added README.hostip
2005-01-14 13:43:29 +00:00
Daniel Stenberg
0e26355348
Inspired by Martijn Koster's patch and example source at
...
http://www.greenhills.co.uk/mak/gentoo/curl-eintr-bug.c , I now made the
select() and poll() calls properly loop if they return -1 and errno is
EINTR. glibc docs for this is found here:
http://www.gnu.org/software/libc/manual/html_node/Interrupted-Primitives.html
This last link says BSD doesn't have this "effect". Will there be a problem
if we do this unconditionally?
S: ----------------------------------------------------------------------
2005-01-13 21:51:48 +00:00
Gisle Vanem
7c1bba315b
Added '-bd' option; target is a DLL.
...
Added dependencies.
2005-01-12 15:32:26 +00:00
Daniel Stenberg
c5b2e85b47
Dan Torop cleaned up a few no longer used variables from David Phillips'
...
select() overhaul fix.
2005-01-11 20:22:44 +00:00
Daniel Stenberg
e3fa7d021e
Renamed easy.h and multi.h to easyif.h and multiif.h to make sure they don't
...
shadow our public headers with the former names.
2005-01-11 15:25:29 +00:00
Gisle Vanem
a1813e2b2d
".\lib\easy.h" shadows for <curl/easy.h> in Watcom.
...
Force including ../include/curl/easy.h.
2005-01-11 14:59:24 +00:00
Gisle Vanem
bb9e5565f2
".\lib\multi.h" shadows for <curl/multi.h> in Watcom.
...
Force including ../include/curl/multi.h.
2005-01-11 14:32:09 +00:00
Daniel Stenberg
29102befa6
Cyrill Osterwalder posted a detailed analysis about a bug that occurs when
...
using a custom Host: header and curl fails to send a request on a re-used
persistent connection and thus creates a new connection and resends it. It
then sent two Host: headers. Cyrill's analysis was posted here:
http://curl.haxx.se/mail/archive-2005-01/0022.html
2005-01-11 14:00:45 +00:00
Daniel Stenberg
9d1145598a
Bruce Mitchener identified (bug report #1099640 ) the never-ending SOCKS5
...
problem with the version byte and the check for bad versions. Bruce has lots
of clues on this, and based on his suggestion I've now removed the check of
that byte since it seems to be able to contain 1 or 5.
2005-01-10 23:32:14 +00:00
Daniel Stenberg
065e466f1a
Use Curl_easy_addmulti() to clear associations from easy handles to multi
...
handles. Include multi.h to get proto.
2005-01-10 11:42:20 +00:00
Daniel Stenberg
21bb852750
Pavel Orehov reported memory problems with the multi interface in bug report
...
#1098843 . In short, a shared DNS cache was setup for a multi handle and when
the shared cache was deleted before the individual easy handles, the latter
cleanups caused read/writes to already freed memory.
2005-01-10 10:07:07 +00:00
Daniel Stenberg
83bab78bda
Hzhijun reported a memory leak in the SSL certificate code, that leaked the
...
remote certificate name when it didn't match the used host name.
2005-01-10 09:48:39 +00:00
Gisle Vanem
9fd33c0b96
New file.
2005-01-08 16:06:37 +00:00
Gisle Vanem
3c09f2d2bd
Added Makefile.Watcom to EXTRA_DIST.
2005-01-08 16:03:45 +00:00
Gisle Vanem
316e74be74
Removed _WIN32_WINNT to support IPv6 under Win-2K.
2005-01-04 16:00:14 +00:00
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
Daniel Stenberg
566f7b5e58
simplified expression
2004-08-19 09:37:22 +00:00
Daniel Stenberg
c8c47768c7
Ling Thio pointed out that getaddrinfo() reverse-lookups ip-only names, and
...
this is an attempt to prevent it from doing that. affects ipv6-enabled only.
2004-08-19 06:44:19 +00:00
Daniel Stenberg
d72ca96a43
indented the code curl-style
2004-08-18 06:12:01 +00:00
Daniel Stenberg
06a5c70f4d
Kjetil Jacobsen reported an open file leak in file:// transfers of empty
...
files.
2004-08-17 12:00:39 +00:00
Daniel Stenberg
2646af106b
allow a custom "Accept-Encoding:" header override the internally set one
...
that gets set with CURLOPT_ENCODING
2004-08-16 13:25:30 +00:00
Daniel Stenberg
7261b4556b
strip trailing whitespace
2004-08-16 13:24:01 +00:00
Gunter Knauf
071e3cf007
syncronized with libcurl.def.
2004-08-16 11:09:30 +00:00
Gunter Knauf
164184b484
cosmetic fix.
2004-08-16 11:09:01 +00:00
Daniel Stenberg
45197b188e
Roland Krikava's cookies over proxy fix.
2004-08-16 07:24:25 +00:00
Gunter Knauf
559553b169
fixed linkage dll targets. (submitted by Casey O'Donnell)
2004-08-14 22:03:40 +00:00
Daniel Stenberg
df59ca1a45
include the server response in the error message when an FTP server gives
...
back a 530 after the password is provided, as it isn't necessary because of a
bad user name or password.
2004-08-11 08:39:48 +00:00
Daniel Stenberg
d5bdf5f89c
Ok, setting CURLOPT_POST to 0 will now convert the request to a GET (this
...
remains undocumented as this is not the way we recommend)
2004-08-10 13:21:32 +00:00
Daniel Stenberg
2cea484428
ignore curllib.dsp
2004-08-10 10:43:41 +00:00
Daniel Stenberg
4934e6471b
In OpenSSL 0.9.7d and earlier, ASN1_STRING_to_UTF8 fails if the input is
...
already UTF-8 encoded. We check for this case and copy the raw string manually
to avoid the problem. This code can be made conditional in the future when
OpenSSL has been fixed. Work-around brought by Alexis S. L. Carvalho.
2004-08-10 08:06:43 +00:00
Daniel Stenberg
9dbd6659dc
more typecasts to please picky compilers
2004-08-10 06:41:13 +00:00
Daniel Stenberg
827a805966
typecast the assigment of an unsigned variable to a signed one to prevent
...
picky warnings
2004-08-09 08:29:39 +00:00
Daniel Stenberg
e23ba31eb9
->fread() should get a size_t variable passed in
2004-08-09 08:28:17 +00:00
Daniel Stenberg
02c6fde11e
made telrcv() take a ssize_t argument instead of int to better match other
...
functions (and prevent warnings)
2004-08-09 08:25:39 +00:00
Daniel Stenberg
9c4ffcc250
Enrico Scholz fixed the service name to be uppercase as reported in bug
...
report #1004105
2004-08-05 18:52:54 +00:00
Daniel Stenberg
55e61c092e
Fixed multiple IP connects with the multi interface. This fix is influenced
...
by Gisle Vanem's patch, only modified by me.
2004-08-04 12:38:01 +00:00
Daniel Stenberg
de6ab3de22
Dylan Salisbury's fix to prevent us from accepting cookies from TLD only
2004-08-04 12:26:27 +00:00
Daniel Stenberg
81c48aa43d
Joel Chen reported that we assumed content within quotes a bit too much in
...
the digest code. This fixes it.
2004-07-31 07:36:01 +00:00
Daniel Stenberg
0cfa9b52ae
prevent all the sig and alarm stuff when using ares
2004-07-29 08:06:33 +00:00
Daniel Stenberg
48b92c163f
fix a mingw32 build warning
2004-07-29 07:48:47 +00:00
Daniel Stenberg
ae2f002b44
added typecast in an attempt to fix a mingw32 warning
2004-07-29 07:34:17 +00:00
Daniel Stenberg
89c312691e
additional typecasts to please MIPSPro on 64bit IRIX
2004-07-29 07:30:38 +00:00
Daniel Stenberg
3e01f70468
curl_easy_reset was added
2004-07-28 21:40:20 +00:00
Daniel Stenberg
b9f1dd7691
Bertrand Demiddelaer fixed the host name to get setup properly even when
...
a connection is re-used, when a proxy is in use.
2004-07-28 21:27:33 +00:00
Daniel Stenberg
a7bed4fc7c
Fixes Brian Akins' reported problems with duplicate Host: headers on re-used
...
connections.
2004-07-28 21:13:29 +00:00
Daniel Stenberg
0e03165467
Bertrand Demiddelaer fixed two missing newlines
2004-07-26 15:42:07 +00:00
Daniel Stenberg
f508f30fb6
curl_easy_reset() added. Need testing and docs. I also think we should make
...
the initial setting up the struct should use this single function to avoid
having the initialisation code at two places.
2004-07-24 21:31:01 +00:00
Daniel Stenberg
cd2e99e980
deal with negative Content-Length: headers by ignoring the info
2004-07-16 21:01:16 +00:00
Gunter Knauf
972d39234f
removed Makefile.b32.resp from repository.
2004-07-16 10:14:51 +00:00
Gunter Knauf
798349fce6
removed Makefile.b32.resp from the list.
2004-07-16 09:23:29 +00:00
Gunter Knauf
9612fda886
changed to use a temporary response file with tlib to give W9x a chance to build; looks ugly but works fine.
2004-07-16 09:20:57 +00:00
Gunter Knauf
c0d1d6926c
some more tweaks, fixed zlib suport.
2004-07-15 21:51:59 +00:00
Gunter Knauf
932a6f6b77
made OpenSSL support conditional;
...
removed ugly dependence on Makefile.b32.resp.
2004-07-15 01:59:59 +00:00
Gunter Knauf
1318760ad2
Gisle's fix to support Borland builds again.
2004-07-15 01:08:08 +00:00
Daniel Stenberg
ca5d1e7a8d
removed the config-netware.h from the release archives
2004-07-14 14:18:31 +00:00
Gunter Knauf
783381c163
updated for current cvs sources; looking for getting rid of this file....
2004-07-13 20:02:31 +00:00
Gunter Knauf
5f26bee7c8
changed to use Makefile.inc.
2004-07-13 20:01:15 +00:00
Gunter Knauf
6e6748f051
changed to use Makefile.inc since Gisle agreed.
2004-07-11 23:43:32 +00:00
Gunter Knauf
08df4b8971
changed paths to external libs to recent versions.
2004-07-11 13:49:18 +00:00
Gunter Knauf
35270e50c2
removed obsolete NetWare config files;
...
we generate now config.h dynamically from Makefile.
2004-07-11 09:31:53 +00:00
Gunter Knauf
03cb3b9db1
ifdef keep_sigact since its only used when SIGALRM is defined.
2004-07-10 23:11:22 +00:00
Gunter Knauf
19ad942739
fixed ares linking.
2004-07-07 20:46:39 +00:00
Daniel Stenberg
2a6f9aa155
Andres Garcia pointed out that we searched for a slash badly since it is
...
converted and thus we must search for backslash on windows
2004-07-06 15:16:05 +00:00
Gunter Knauf
954575a19d
changed to use Makefile.inc; made paths overwritable.
2004-07-05 13:25:30 +00:00
Gunter Knauf
47bbe36725
added comment.
2004-07-05 13:24:44 +00:00
Gunter Knauf
dba40b35f2
try to relax linux build host detection.
2004-07-05 01:58:33 +00:00
Daniel Stenberg
dfda9cc007
explicit typecasts to prevent warnings
2004-07-04 21:54:49 +00:00
Daniel Stenberg
e39b29fc48
typecast the conversion to uInt when assigning z->avail_in to prevent
...
warnings from picky compilers
2004-07-04 21:53:46 +00:00
Daniel Stenberg
4c17ba4fc0
make sure the 3rd argument passed to bind() is a socklen_t
2004-07-04 21:48:54 +00:00
Daniel Stenberg
4511f7ac50
SSL_get_verify_result() returns a long, so we receive the result in a long
...
and not an int.
2004-07-04 21:42:32 +00:00
Daniel Stenberg
b9f76f11bb
typecast long => int conversion
2004-07-04 21:38:36 +00:00
Daniel Stenberg
17841a20e3
explicit typecasts when converting from long to int to avoid warnings
2004-07-04 21:37:35 +00:00
Daniel Stenberg
d2e6a0583a
made 'connectindex' a long variable to prevent compiler warnings when
...
implicitly converting it to int
2004-07-04 21:36:14 +00:00
Daniel Stenberg
31c332af93
typecast the conversion from long to int to prevent picky compiler warnings
2004-07-04 21:35:12 +00:00
Gunter Knauf
90af60a6ef
removed now obsolete ifdef. Shouldnt the other ifdefs be inside the else as they are in ./src/setup.h ?
2004-07-04 15:37:25 +00:00
Gunter Knauf
efb1fdbec8
removed abort() - sync'd with getdate.y 1.26
2004-07-04 15:27:08 +00:00
Daniel Stenberg
bada8cc259
include the Makefile.inc file to get all sources and headers
2004-07-04 08:45:25 +00:00
Gunter Knauf
6e72ea7442
reverted, older gcc breaks compilation since it doesnt know the switch.
2004-07-03 20:18:02 +00:00
Gunter Knauf
a4aac27fd3
killed warning with gcc 3.3.1 and later when using -O2.
2004-07-03 19:58:01 +00:00
Gunter Knauf
fc0df97278
modified to use new Makefile.inc to build up object list;
...
added generation of config.h and a prebuild target to create all neded files.
2004-07-03 18:06:39 +00:00
Gunter Knauf
592658e874
added Makefile.inc which can be included from other makefiles to reduce maintaining.
2004-07-03 17:49:40 +00:00
Daniel Stenberg
aedadfc779
explicit typecasts to double to prevent warnings about implicit conversions
...
that might lose accuracy
2004-07-02 11:56:26 +00:00
Daniel Stenberg
d1d53b2bbf
make clean now removes getdate.c
2004-07-02 11:25:13 +00:00
Daniel Stenberg
a9572bf88a
Andrs Garca found out the share cleanup code crashes when you cleanup
...
and there are not lock/unlock functions set!
2004-07-02 08:28:31 +00:00
Daniel Stenberg
090b89cc76
Variable type cleanups to please the picky MIPSPro compiler.
2004-07-01 08:10:21 +00:00
Daniel Stenberg
f05d47ddd6
variable type cleanup to fix picky compiler warnings
2004-07-01 07:43:20 +00:00
Daniel Stenberg
fcfd4bef2d
typecast to prevent picky compiler warning
2004-07-01 07:30:19 +00:00
Daniel Stenberg
18dc8fbc26
typecast to int when the variable is int!
2004-07-01 07:28:36 +00:00
Daniel Stenberg
e35187741b
spellfixed comments
2004-07-01 06:08:06 +00:00
Daniel Stenberg
ce945bd2f0
5K array on the stack is a big hefty, it is now allocated with malloc
...
instead
2004-06-30 12:05:07 +00:00
Daniel Stenberg
8efa6f407d
I think 1024 bytes is enough for even most ipv6 addresses :-)
2004-06-30 12:04:37 +00:00
Daniel Stenberg
85bd4621db
Prevent a very long password to buffer overflow the global variable we
...
use when built with a very old OpenSSL version.
2004-06-30 11:53:34 +00:00
Daniel Stenberg
6c3759d78d
removed trailing whitespace, free a missing malloc when returning error
2004-06-30 11:51:24 +00:00
Daniel Stenberg
4af08a19f8
passing in a very long interface name could make a buffer overflow
2004-06-30 11:48:19 +00:00
Daniel Stenberg
c7a9e07909
simplified the check for when to free() the buf data
2004-06-30 11:32:16 +00:00
Daniel Stenberg
185baf036b
NOBODY set TRUE after a POST makes a good HEAD now
2004-06-30 11:09:16 +00:00
Daniel Stenberg
ba40eccc90
make the SSL connect use the same default connect timeout define as the
...
generic connect uses
2004-06-30 09:22:48 +00:00
Daniel Stenberg
7a52f44bd4
Gisle fixed a bad free from the resolve reorg, I changed type of the buf
...
variable to sort out some compiler warnings.
2004-06-29 18:44:59 +00:00
Daniel Stenberg
efa5485744
Gisle's djgpp updates
2004-06-29 18:43:56 +00:00
Daniel Stenberg
808621ab22
corrected the Curl_is_connected() proto
2004-06-29 11:21:05 +00:00
Daniel Stenberg
6ed5feda2b
First attempt at making the multi interface work when connecting to a host
...
that resolves to multiple IP addresses.
2004-06-29 11:20:07 +00:00
Daniel Stenberg
b0cd96478c
oops 5 bytes makes 4 letters plus zero byte
2004-06-24 15:15:27 +00:00
Daniel Stenberg
387ec712e6
fix warning
2004-06-24 15:06:25 +00:00
Daniel Stenberg
f2a99d7d74
the _num_chars() function is not used, removing
2004-06-24 15:05:39 +00:00
Daniel Stenberg
8b6b15dccc
to prevent compier warnings, we only declare len if we have code
...
that uses it
2004-06-24 14:52:51 +00:00
Daniel Stenberg
785bad388b
Gisle cleaned up remaining host resolve re-org issues
2004-06-24 14:39:52 +00:00
Daniel Stenberg
cf10df6c68
include header for our printfs
2004-06-24 14:35:45 +00:00
Daniel Stenberg
5b55dcbfbb
reverted bad win32 fix
2004-06-24 14:34:13 +00:00
Gunter Knauf
e7dbbd16a5
fixed the MSVC build.
2004-06-24 13:49:14 +00:00
Daniel Stenberg
62f0457961
length limit the sscanf() parsing to prevent buffer overflow
2004-06-24 12:07:36 +00:00
Daniel Stenberg
8879b57b73
ah, simplified my latest change more
2004-06-24 12:01:20 +00:00
Daniel Stenberg
e49a6feabb
fix for systems without gethostbyname_r()
2004-06-24 11:58:43 +00:00
Daniel Stenberg
feb2dd2835
Replaced all uses of sprintf() with the safer snprintf(). It is just a
...
precaution to prevent mistakes to lead to buffer overflows.
2004-06-24 11:54:11 +00:00
Daniel Stenberg
5e34f3dc01
made the Curl_he2ai() take the port number as an int intead, to avoid lots
...
of typecasts all over
2004-06-24 10:43:50 +00:00
Daniel Stenberg
0031d76f2a
use snprintf() to be on the safe side
2004-06-24 10:43:22 +00:00
Daniel Stenberg
00ee738fdd
typecasts to prevent warnings
2004-06-24 09:14:59 +00:00
Daniel Stenberg
8d0a823124
only use sockaddr_in6 on ipv6-enabled hosts
2004-06-24 09:13:50 +00:00
Daniel Stenberg
cdb419d65e
typecast to prevent warning
2004-06-24 08:31:17 +00:00
Daniel Stenberg
d6f9a41539
use Curl_addrinfo, not 'struct addrinfo'
2004-06-24 08:30:39 +00:00
Daniel Stenberg
1daa258b8a
fixed problems I missed to fix from my cleanup
2004-06-24 08:09:54 +00:00
Daniel Stenberg
560c257bd0
prevent warning
2004-06-24 08:08:28 +00:00
Daniel Stenberg
c39858aac0
Source cleanups. The major one being that we now _always_ use a Curl_addrinfo
...
linked list for name resolved data, even on hosts/systems with only IPv4
stacks as this simplifies a lot of code.
2004-06-24 07:43:48 +00:00
Daniel Stenberg
818aed35e2
static functions are better not Curl_ prefixed to make their static
...
status more obvious
2004-06-23 09:08:03 +00:00
Daniel Stenberg
2ed524f07e
When adding the return -1 to prevent warnings on some compilers, others
...
started complaining since it won't be reached... So I removed the call to
abort() and just return -1 instead. abort() was wrong to call anyway since
this is a library!
2004-06-23 06:17:17 +00:00
Daniel Stenberg
5f1eefd03f
prevent a warning
2004-06-23 06:14:23 +00:00
Gunter Knauf
522b4d7576
one copy&paste too much, removed the define again.
2004-06-22 23:56:19 +00:00
Gunter Knauf
d6dcb08407
argh - copy&paste error.
2004-06-22 23:22:37 +00:00
Gunter Knauf
806c756a2d
syncronized with recent getdate.y updates.
2004-06-22 23:04:57 +00:00
Daniel Stenberg
2494701347
the hostname variable wasn't assigned and we no longer use it
2004-06-22 21:25:53 +00:00
Daniel Stenberg
35558e6bd7
David Cohen pointed out that RFC2109 says clients should allow cookies to
...
contain least 4096 bytes while libcurl only allowed 2047. I raised the limit
to 4999 now and made the used buffer get malloc()ed instead of simply
allocated on stack as before.
2004-06-22 21:15:51 +00:00
Daniel Stenberg
7659747e6f
Gnter Knauf fixed getdate.y to remove a few warnings. I removed the
...
ifdef'ed test we never ever use anyway.
2004-06-22 21:12:34 +00:00
Daniel Stenberg
d73425061a
Moved the "About to connect() to" text to the place where the host name is
...
actually known, as before this text lied when used in i.e FTP.
2004-06-22 15:23:01 +00:00
Daniel Stenberg
76920413d9
Gisle fixed the wildcard checks for certificates.
2004-06-22 08:51:22 +00:00
Daniel Stenberg
44d9a8ba4e
Gunter's fix to avoid the notorious YYSTACK_USE_ALLOCA warning we get on
...
several platforms/compilers/yacc versions.
2004-06-22 07:27:43 +00:00
Daniel Stenberg
dca6386234
pass an int pointer when it expects an int pointer...
2004-06-22 06:50:41 +00:00
Daniel Stenberg
8e28721057
The read callback can now return CURL_READFUNC_ABORT to stop a transfer.
2004-06-21 14:07:38 +00:00
Daniel Stenberg
29c546b426
typecasts to prevent compiler warnings
2004-06-21 08:37:53 +00:00
Daniel Stenberg
cd7a0f829f
When doing auth negotiations or authprobing, we only consider HTTP code
...
<300 to be good.
2004-06-19 10:10:24 +00:00
Daniel Stenberg
cf3f1ef284
prevent compiler warning
2004-06-19 09:38:08 +00:00
Daniel Stenberg
bd3d5a17b4
Gisle's "SSL patch" from June 16th 2004, modified by me as discussed on the
...
mailing list.
2004-06-18 06:20:43 +00:00
Daniel Stenberg
d4b577114b
With David Byron's test server I could repeat his problem and make sure that
...
POSTing over HTTPS:// with NTLM works fine now. There was a general problem
with multi-pass authentication with non-GET operations with CONNECT.
2004-06-18 06:15:26 +00:00
Daniel Stenberg
05baf94b43
Keep the upload byte counter in an curl_off_t, not an int. 32bits is not
...
enough. This is most likely the bug Jean-Louis Lemaire reported that makes
2GB FTP uploads to report error when completed.
Also padded comments to get them aligned again, only for visibility.
2004-06-16 09:28:47 +00:00
Daniel Stenberg
a76288b99a
Alexander Krasnostavsky fixed a flaw in the 3rd party transfer code that
...
didn't properly check return code.
2004-06-16 09:05:22 +00:00
Daniel Stenberg
80a1e972fc
Fix the auth code to enable us to i.e set DIGEST and then find out that the
...
server doesn't require any auth at all and then we just continue nicely. We
now have an extra bit in the connection struct named 'authprobe' that is TRUE
when doing pure "HTTP authentication probing".
2004-06-15 08:45:22 +00:00
Daniel Stenberg
5e65d48ffa
we actually build and run fine with libidn 0.4.1 too, so let's not require
...
anything newer than that
2004-06-14 21:40:11 +00:00
Daniel Stenberg
24572daccc
Allow formposting of files larger than what fits in memory by not reading the
...
file until it is actually being uploaded.
Make sure we build and still work with HTTP disabled - the SSL code might use
the boundary string for some random seeding.
2004-06-14 08:51:43 +00:00
Daniel Stenberg
4cd96483f6
moved default: in a switch case to prevent compiler warning that 'request'
...
might be used uninitialized
2004-06-13 09:08:38 +00:00
Daniel Stenberg
8f1783b8a7
provide curl_formfree() even when http is disabled, it does nothing then
2004-06-13 08:59:37 +00:00
Daniel Stenberg
be72eaa327
use Curl_strcasestr() when checking wildcard cert names
2004-06-13 08:33:26 +00:00
Daniel Stenberg
61bded1d82
added Curl_strcasestr() for case insensitive strstr() searching
2004-06-13 08:32:57 +00:00
Gunter Knauf
4b3937373a
removed unused include path.
2004-06-11 17:27:03 +00:00
Gunter Knauf
08bf0907d4
fixed xdc generation, added lib target, load curl.nlm into ring3 by default.
2004-06-11 15:33:07 +00:00
Gunter Knauf
8d0c77403c
some more makefile changes.
2004-06-11 02:29:16 +00:00
Gunter Knauf
5be788ba36
some more makefile changes.
2004-06-11 01:04:06 +00:00
Gunter Knauf
281559b31b
cosmetic correction.
2004-06-10 22:24:37 +00:00
Gunter Knauf
ef1aa4e5e9
converted to UNIX format.
2004-06-10 21:20:15 +00:00
Gunter Knauf
60f5b2b275
minor output fix.
2004-06-10 20:43:46 +00:00
Gunter Knauf
295169f9d9
added generation of missing files.
2004-06-10 20:12:49 +00:00
Gunter Knauf
1a3797a699
make include path overridable.
2004-06-10 17:11:39 +00:00
Daniel Stenberg
8d76d4016d
removed trailing whitespace
2004-06-10 11:56:02 +00:00
Daniel Stenberg
9f92657f76
Gisle corrected two comments
2004-06-10 11:55:37 +00:00
Daniel Stenberg
9f341f9ce5
Gisle Vanem's improved verbose output and timeout handling when connecting to
...
a host name that resolves to multiple IP addresses.
2004-06-10 11:06:21 +00:00
Daniel Stenberg
2098871509
build again with disabled http
2004-06-10 07:46:24 +00:00
Daniel Stenberg
3d00c86f4c
Steven Bazyl and Seshubabu Pasam pointed out a bug on win32 when freeing the
...
path after a transfer.
2004-06-10 07:17:28 +00:00
Daniel Stenberg
90037b85d1
Alexander Krasnostavsky's fix to make libcurl build fine with configure
...
--disable-http, which thus builds a libcurl without HTTP support.
2004-06-09 08:23:55 +00:00
Daniel Stenberg
6ec145d4b4
when built with HTTP disabled, provide a curl_formadd() function anyway to
...
keep the API complete at all times
2004-06-09 08:22:02 +00:00
Daniel Stenberg
bd1adaf7ea
when producing curllib.dsp, include libcurl.def as a source file.
...
An Alexander Krasnostavsky fix.
2004-06-09 06:54:12 +00:00
Gunter Knauf
0c9e23fc0c
added the new source files.
2004-06-09 01:27:48 +00:00
Gunter Knauf
f091ce64ac
corrected copyright.
2004-06-09 01:15:03 +00:00
Gunter Knauf
5bfeb60a83
corrected defines.
2004-06-08 15:05:45 +00:00
Daniel Stenberg
1ab4a2f870
delete trailing whitespace
2004-06-08 15:05:20 +00:00
Gunter Knauf
3f739acf24
converted to UNIX format.
2004-06-08 14:52:32 +00:00
Daniel Stenberg
f0969c9692
prevent compiler warning with picky compilers
2004-06-07 10:28:14 +00:00
Daniel Stenberg
4c58797607
When sending info about which host that sends what, include proper direction
...
to/from, based on a suggestion from Alexander Krasnostavsky
2004-06-07 07:01:29 +00:00
Daniel Stenberg
0b04c52119
Gnter Knauf's netware build fixes
2004-06-04 07:02:30 +00:00
Daniel Stenberg
fce9d51122
updated a comment
2004-06-03 14:42:08 +00:00
Daniel Stenberg
af33c6b549
deleted trailing whitespace
2004-06-03 13:03:57 +00:00
Daniel Stenberg
ea81dd9e2e
Alexander Krasnostavsky's FTP third party transfer (proxy) support
2004-06-03 11:41:05 +00:00
Daniel Stenberg
70f08b5baa
Vincent Bronner made the code use the correct user name + password when
...
doing proxy authentication.
2004-06-03 10:42:20 +00:00
Daniel Stenberg
de03f172ad
very minor format edit
2004-06-02 14:39:34 +00:00
Daniel Stenberg
d3f796ac59
Made CURLOPT_UPLOAD and CURLOPT_PUT mean the same thing internally (the
...
previous difference was not clear nor documented properly). They can now both
be used interchangeably, but we prefer UPLOAD to PUT since it is a more
generic term.
2004-06-02 13:57:38 +00:00
Daniel Stenberg
938a72b2db
Gisle's adjustments to allow building with lcc-win32
2004-06-02 11:36:07 +00:00
Daniel Stenberg
a8827b1ed6
Gisle made ftp_mkd static
2004-06-02 11:34:53 +00:00
Daniel Stenberg
cb21851c74
David Byron made this use the mm lib by default, as was previously done. This
...
might be done differently in the future.
2004-06-01 08:09:43 +00:00
Daniel Stenberg
aca79af7de
check for failing strdup()s
2004-05-28 09:56:59 +00:00
Daniel Stenberg
dcf7310b2d
fixed curl_easy_duphandle() to properly clean up all memory if any memory
...
function fails and it returns NULL
2004-05-27 07:48:09 +00:00
Daniel Stenberg
76dfef7117
Mohun Biswas added release-zlib and debug-zlib targets.
2004-05-26 11:49:28 +00:00
Daniel Stenberg
8442c3942d
three new functions in the public API
2004-05-26 09:17:20 +00:00
Daniel Stenberg
2c43d64302
Added a new 'bit' in the connect struct named 'tunnel_proxy' that is set
...
if a connection is tunneled through a proxy. A tunnel is done with CONNECT,
either when using HTTPS or FTPS, or if explicitly enabled by the app.
2004-05-26 08:54:36 +00:00
Daniel Stenberg
fd802db39f
initial support for "uploading" to file:// URLs
2004-05-25 21:47:29 +00:00
Daniel Stenberg
f6319bd706
Massimiliano Ziccardi's updates for the VC6 makefiles
2004-05-25 13:52:12 +00:00
Daniel Stenberg
0912015a5c
preprocessor magic around the libidn idn_free() stuff to remain workable
...
both with older libidn versions without idn_free() and with libidn versions
that gets installed without idn-free.h
2004-05-25 12:00:15 +00:00
Daniel Stenberg
6531a6116d
remove trailing whitespace
2004-05-25 11:13:49 +00:00
Daniel Stenberg
5d8b526b80
delete trailing whitespace
2004-05-24 11:57:34 +00:00
Daniel Stenberg
85b2056dc7
only idn_free() if built with libidn
2004-05-24 08:19:37 +00:00
Daniel Stenberg
94ca911dc1
delete trailing whitespace
2004-05-24 07:53:25 +00:00
Daniel Stenberg
24420c2191
Simon Josefsson added a idn_free() function in libidn 0.4.5 as a reaction to
...
Gisle's previous mail. We now use this function, and thus we require libidn
0.4.5 or later. No earler version will do.
2004-05-24 07:40:00 +00:00
Daniel Stenberg
59f904d8de
Robert D. Young reported that CURLOPT_COOKIEFILE and CURLOPT_COOKIE could
...
not be used both in one request. Fixed it and added test case 172 to verify.
2004-05-24 07:13:48 +00:00
Daniel Stenberg
755f98e768
While talking to host a.b.c, libcurl did wrongly not accept cookies that were
...
set to the domain .a.b.c (that is with a dot prefix). This is now fixed and
test case 171 verifies it.
2004-05-21 20:40:15 +00:00
Daniel Stenberg
aadc797225
quickfix to avoid division by zero, possibly we should go over all of these
...
once and for all
2004-05-21 12:23:53 +00:00
Daniel Stenberg
60f9450594
calculate upload and download speed using doubles to keep precision.
...
deleted trailing whitespace
2004-05-20 20:35:42 +00:00
Daniel Stenberg
cdd70596df
killed trailing whitespace
2004-05-19 09:25:00 +00:00
Daniel Stenberg
17eb1fca7c
+ when storing the address in the cache fails, cleanup the resolved address
...
properly
+ delete trailing whitespace
2004-05-18 07:35:37 +00:00
Daniel Stenberg
2511d1193a
* seed_enough() was converted to a macro to avoid the IRIX compiler warning
...
about that passed-in argument not being used.
* killed trailing whitespace
2004-05-18 07:25:13 +00:00
Daniel Stenberg
e9056f5f95
if shrinking the buffer fails, use the older larger one
2004-05-17 22:07:43 +00:00
Daniel Stenberg
a9893ca79a
Peter Sylvester's patch that addresses two flaws in the peer certificate name
...
verification:
- when multiple common names are used (as in the curl tests), the last name
needs to be selected.
- allow comparing with encoded values, at least with BMP and ISO latin1
encoded T61strings.
2004-05-17 22:01:16 +00:00
Daniel Stenberg
d70a335dce
new Curl_done() proto
2004-05-17 08:07:07 +00:00
Daniel Stenberg
8001921112
I made Curl_done() take a pointer-pointer in the first argument instead, and
...
if the connection is killed it blanks the pointer it points to, to make it
easier to detect usage problems whereever Curl_done() is used.
2004-05-17 08:05:46 +00:00
Daniel Stenberg
d7cb09bd18
better bailing out on memory failure
2004-05-17 08:04:42 +00:00
Daniel Stenberg
de279099e5
bail out nicely if strdup() returns NULL, removed trailing whitespace
2004-05-17 06:53:41 +00:00
Daniel Stenberg
6bd8db3c99
deleted trailing whitespace
2004-05-17 06:50:32 +00:00
Daniel Stenberg
6176f14141
fixed a warning on IRIX, deleted trailing whitespace
2004-05-17 06:50:08 +00:00
Daniel Stenberg
512e54ff85
added string for the new share error code
2004-05-14 11:46:35 +00:00
Daniel Stenberg
b5f85ba77d
memory cleanup and check fix
2004-05-13 15:19:02 +00:00
Daniel Stenberg
b6ee33c6e1
check that memory allocation functions truly return good data or bail out
2004-05-13 15:18:29 +00:00
Daniel Stenberg
1c69b15c7c
return on memory alloc fail
2004-05-13 15:17:49 +00:00
Daniel Stenberg
54cd2bee58
better bailing out in case of no memory
2004-05-13 15:17:07 +00:00
Daniel Stenberg
5bf02b16a0
curl_free() doesn't free(NULL) but just returns
2004-05-13 15:16:36 +00:00
Daniel Stenberg
594cb8507b
deal with input arguments as NULL
2004-05-13 15:16:10 +00:00
Daniel Stenberg
78aba6e4cd
return CURLDIGEST_NOMEM when a memory function fails to deliver
2004-05-13 14:14:03 +00:00
Daniel Stenberg
ccdcdb2a46
mark a value as alloced when strdup()ed to prevent memory leaks
2004-05-13 14:13:12 +00:00
Daniel Stenberg
b121e41ec3
bail out when no memory occurs
2004-05-13 14:12:49 +00:00
Daniel Stenberg
05d8e56ffd
Gisle Vamem reintroduced the verifyconnect() call on windows as well, and
...
we now use it to provide more info back on connect failures.
2004-05-13 10:40:17 +00:00
Daniel Stenberg
4345c7a712
Gisle: minor fix
2004-05-13 10:38:57 +00:00
Daniel Stenberg
12d5e33dc9
no more Curl_ldap_done
2004-05-13 10:38:37 +00:00
Daniel Stenberg
6d70a82757
Added two two missing header files I missed when I removed the noinst_HEADERS
2004-05-13 09:01:15 +00:00
Daniel Stenberg
fd775454ca
Check that memory functions return non-NULL or return error.
2004-05-12 13:24:40 +00:00
Daniel Stenberg
8e09a389c4
make sure the returned pointer is NULL when encoding fails
2004-05-12 13:23:17 +00:00
Daniel Stenberg
aa3ae01878
clean up and return better on out of memory
2004-05-12 13:05:01 +00:00
Daniel Stenberg
c123676825
return NULL on out of memory
2004-05-12 13:04:30 +00:00
Daniel Stenberg
d60c22572b
Curl_done() and the protocol-specific conn->curl_done() functions now all
...
take a CURLcode as a second argument, that is non-zero when Curl_done()
is called after an error was returned from Curl_do() (or similar).
2004-05-12 12:06:39 +00:00
Daniel Stenberg
1d7ce36791
return faster when we "hit a wall" while printfing
2004-05-12 12:05:13 +00:00
Daniel Stenberg
34e8baab9a
general cleanup to bail out nice and clean when a memory function fails
...
to deliver
2004-05-12 12:04:38 +00:00
Daniel Stenberg
a219d774fe
even if Curl_do() fails, we must call Curl_done() to do proper cleaning up
2004-05-12 09:02:54 +00:00
Daniel Stenberg
005042e973
improved cleaning up in case of memory allocation failures
2004-05-12 09:02:23 +00:00
Daniel Stenberg
d301d69fbf
bail out if we can't allocate the new range string, and make use of aprintf()
...
instead of using snprintf() + strdup().
2004-05-12 08:26:56 +00:00
Daniel Stenberg
c9bab31a7f
use size_t better for buffer and alloc lengths
2004-05-12 08:00:21 +00:00
Daniel Stenberg
2f60e91a9b
removed another jhrg-reference in a comment
2004-05-12 07:56:01 +00:00
Daniel Stenberg
018affe6d0
Edited comments only.
2004-05-12 07:55:05 +00:00
Daniel Stenberg
aeb27ccfdb
The Curl_unencode_XXX_write() function take a ssize_t as third argument, so
...
we typecast on invoke.
2004-05-12 07:54:44 +00:00
Daniel Stenberg
939866faab
Left-over from before the return-code fix. This is probably the code that
...
causes xlc and gcc act differently on AIX.
2004-05-12 06:27:40 +00:00
Daniel Stenberg
98f968f2ee
fixed Curl_open() to not leak anything if one malloc() fails, fix by
...
James Bursa only modified by me.
2004-05-11 21:17:03 +00:00
Daniel Stenberg
853134017d
minor leak in case of error, thanks to "./runtests.pl -n -t 25"
2004-05-11 14:53:24 +00:00
Daniel Stenberg
d3999e06d1
clear up memory on failure a little better
2004-05-11 14:48:53 +00:00
Daniel Stenberg
3f106afd00
cut out the changelog, it is far from accurate anyway
2004-05-11 12:22:50 +00:00
Daniel Stenberg
d925057e11
added curl_global_init_mem
2004-05-11 11:48:09 +00:00
Daniel Stenberg
bbafb2eb27
curl_global_init_mem() allows the memory functions to be replaced.
...
memory.h is included everywhere for this.
2004-05-11 11:30:23 +00:00
Daniel Stenberg
434bc13812
*** empty log message ***
2004-05-11 11:29:31 +00:00
Daniel Stenberg
5c592f7dd9
Make this source code use our internal *printf().
...
Also some minor edits.
2004-05-11 11:29:02 +00:00
Daniel Stenberg
04e2520dbb
new attempt at an improved DSP-file generation
2004-05-11 07:54:55 +00:00
Daniel Stenberg
63f97b38eb
Moved the fetching of the list of matching cookies to make it easier to free
...
that list in case something goes wrong in the function and we must bail out.
Courtesy of the torture testing.
2004-05-10 14:22:20 +00:00
Daniel Stenberg
b8541929c8
curl_slist_append() fixed to clear up properly if a memory function fails
2004-05-10 14:21:19 +00:00
Daniel Stenberg
5dcab07c54
if a malloc fails, clear up the memory and return failure
2004-05-10 14:04:06 +00:00
Daniel Stenberg
1f798affb9
typo
2004-05-10 10:52:29 +00:00
Daniel Stenberg
a2ecdf4249
the aprintf() versions now return NULL if _any_ alloc along the way failed,
...
previously they could return a piece of the string, making it impossible
for the caller to detect errors.
2004-05-10 10:50:43 +00:00
Daniel Stenberg
71fdc063bd
better detection for when add_buffer() returns failure, and return when that
...
happens
2004-05-10 10:49:35 +00:00
Daniel Stenberg
887d78a9ad
Curl_hash_add() was modified to clear up better in case of internal failure.
...
When failing, it should not tamper at all with the data it was supposed to
add to the cache.
2004-05-10 09:17:50 +00:00
Daniel Stenberg
228fea4628
make Curl_llist_insert_next() fail properly if malloc() fails
2004-05-10 08:57:37 +00:00
Daniel Stenberg
e64dacb40e
better checking that strdup() works
2004-05-10 08:57:18 +00:00
Daniel Stenberg
fff01f24bf
Luca fixed the nc= in the digest line since it apparantly should not have
...
quotes...
2004-05-10 08:09:15 +00:00
Daniel Stenberg
e55dee3807
James Bursa added better error checking for failer memory calls when
...
building formposts
2004-05-10 07:11:52 +00:00
Daniel Stenberg
8c2ce33c0b
build curllib.dsp from these
2004-05-10 07:03:46 +00:00
Daniel Stenberg
445c7791a7
James Bursa changed two error message to use the display-name instead of the
...
internally-used name.
2004-05-07 18:56:33 +00:00
Daniel Stenberg
3394c01826
We don't support any long protocol names so we can use a smaller buffer.
...
Also, make sure we have room for the trailing zero, only scan to size-1.
Gisle Vanem reported.
2004-05-07 18:46:28 +00:00
Daniel Stenberg
d67ea8c7ad
count the formdata size using a 64bit size if avaialble
2004-05-07 09:50:49 +00:00
Daniel Stenberg
9aebdff219
don't use a magic define name
2004-05-07 09:42:23 +00:00
Daniel Stenberg
90da930131
This file is now generated at dist-time.
2004-05-07 09:41:28 +00:00
Daniel Stenberg
fbdc1b1e3d
Generate curllib.dsp on dist.time from msvcproj.head msvcproj.foot and the
...
known source files. Not actually verified to work yet.
2004-05-07 09:41:05 +00:00
Daniel Stenberg
e942df755b
get the display host name properly
2004-05-07 06:18:47 +00:00
Daniel Stenberg
91c8be3628
removed two odd comments
2004-05-06 15:17:10 +00:00
Daniel Stenberg
8e73e55336
Michael Benedict brought a fix that fills in the errorbuffer properly
...
when ares fails to resolve a name. This was fixed before but somehow has
fallen out again!
2004-05-06 11:10:51 +00:00
Daniel Stenberg
6f74820cfc
if no strerror_r prototype is found, we provide our own to prevent picky
...
compilers to warn
2004-05-06 10:49:40 +00:00
Daniel Stenberg
af72f198ba
removed the unused 'len' variable, made use of the ptr pointer even if no
...
extra lib is used to prevent compiler warnings ("variable set but not used")
on that case
2004-05-06 07:32:30 +00:00
Daniel Stenberg
3fc831f9eb
typecast the unsigned long to plain long to prevent compiler warnings
2004-05-06 07:24:47 +00:00
Daniel Stenberg
9f660862ec
unused variable removed
2004-05-06 07:22:32 +00:00
Daniel Stenberg
1354671c90
use %ld to printf now.tv_sec
2004-05-06 07:21:19 +00:00
Daniel Stenberg
1175a226e3
curlx.h is a header to add to the release archive(s)
2004-05-06 07:19:58 +00:00
Daniel Stenberg
9cf04dff6a
hm, avoid division by zero more carefully with that new percentage math
2004-05-05 14:22:46 +00:00
Daniel Stenberg
6bdcfecbcf
Joe Halpin fixed the warning on the typecast from data pointer to function
...
pointer!
2004-05-05 14:08:52 +00:00
Daniel Stenberg
3f21fe60fc
Gisle fixed the percentage to work, I adjusted it slightly to not as easily
...
overflow on 32bit filesize-systems
2004-05-05 13:44:44 +00:00
Daniel Stenberg
b2c290e40e
Gisle-fix: constified the 'interface' argument.
2004-05-05 13:42:23 +00:00
Daniel Stenberg
bc5b2fa12c
Gisle fix: curl_formparse is gone.
2004-05-05 13:42:05 +00:00
Daniel Stenberg
32a9554c92
Gisle fixed: don't reference 'mem' if it's NULL.
2004-05-05 13:41:54 +00:00
Daniel Stenberg
afc1ed60f7
initiate variables properly to default to no auth for server and proxy
2004-05-05 13:00:03 +00:00
Daniel Stenberg
6062ac7c37
made the progress meter display not overflow even if _very_ large files
...
are transfered. The maximum size we support now is 8 exabytes, which equals
to 8192 petabytes...
2004-05-05 08:43:23 +00:00
Daniel Stenberg
caf7854a3c
if the values allow it, avoid floting point math for the current speed
2004-05-05 07:45:21 +00:00
Daniel Stenberg
7591e07b7c
do the alarm time-left math using unsigned longs since that is what alarm()
...
returns and uses as input and converting to signed generates warnings and
actually risks loss of accuracy
2004-05-05 07:17:37 +00:00
Daniel Stenberg
35ab93f484
fix_hostname() now (void)s the conn argument to prevent warnings on non-idn
...
enabled builds
2004-05-05 07:08:31 +00:00
Daniel Stenberg
dcf5e52b62
ERR_error_string() returns an unsigned long so we should use one of those
...
for the return code
2004-05-05 07:01:33 +00:00
Daniel Stenberg
4d9517f0b4
prevent warnings when using the gcc option -Wunreachable-code
2004-05-05 06:57:26 +00:00
Daniel Stenberg
a331aa0221
make the memlimit final NULL return get written to stderr as wella
2004-05-05 06:57:04 +00:00
Daniel Stenberg
76ff92b811
bail out when an add_buffer() function returns failure
2004-05-04 14:27:07 +00:00
Daniel Stenberg
4250637e7d
improved the cleaning up of memory when we fail to resolve names due to
...
out of memory (thanks to 'runtests.pl -t')
2004-05-04 13:40:30 +00:00
Daniel Stenberg
08d1da106e
check malloc() return code
2004-05-04 13:39:24 +00:00
Daniel Stenberg
9e31a0536e
removed more leftovers from the formparse function
2004-05-04 09:31:04 +00:00
Daniel Stenberg
2960d37d71
removed curl_formparse() from the library
2004-05-04 08:24:13 +00:00
Daniel Stenberg
fc6eff13b5
General HTTP authentication cleanup and fixes
2004-05-04 07:52:53 +00:00
Daniel Stenberg
e7ee1ccf45
Gisle fixed the problem with ldap_search_s() fails with "filter error": a case
...
of using 'lud_filter' after freeing 'lud_dn'.
2004-05-03 15:01:34 +00:00
Daniel Stenberg
d42dcd60cd
Gisle Vanem:
...
Patch for ldap.c under Windows. It works with wldap32.dll as supplied with
Win-98/ME/2000/XP, so no extra .dlls are required. I've mostly tested it
against Verisign's ldap server. Added code in the case there are to many
responses (rc = LDAP_SIZELIMIT_EXCEEDED) and print only those we got. E.g.
curl
ldap://directory.verisign.net/?cn,display-name,mail,info?subtree?(cn=*Nelson*)
will print the first 10 results.
My only problem with it is that ldap_search_s() fails with "filter error" when
CURLDEBUG is defined ?! Maybe someone can spot the error.
2004-05-03 09:14:12 +00:00
Daniel Stenberg
26b8b3fc53
updated with more and new info
2004-04-30 08:51:19 +00:00
Daniel Stenberg
913e1570bd
New header file that offers easy access to the curlx_ functions for an app.
...
curlx_ functions are NOT part of the offical API, but only available as source
code functions from the lib directory in case of need.
2004-04-30 08:22:38 +00:00
Daniel Stenberg
1756499b11
oops, a bad strtok() was fixed by Luca
2004-04-30 05:53:42 +00:00
Daniel Stenberg
59907ebc0e
fixed the host/proxy name issue when re-using a connection and made IDN names
...
work when using proxy by converting the IDN-name to the ACE-encoded version
before the request-URL is passed to the proxy.
2004-04-29 13:41:48 +00:00
Daniel Stenberg
8ca37dd1c7
encode the correct name
2004-04-29 11:57:52 +00:00
Daniel Stenberg
31e9e4bb76
curl_easy_duphandle() works again with ares enabled
2004-04-29 10:58:22 +00:00
Daniel Stenberg
b34c40dcf5
Luca Altea's major HTTP Digest update
2004-04-29 08:18:32 +00:00
Daniel Stenberg
699ebe2f0b
Gisle made the code use ERR_error_string_n()
2004-04-29 07:36:40 +00:00
Daniel Stenberg
e1c6f216c2
the new way of accessing the host name
2004-04-28 20:34:04 +00:00
Daniel Stenberg
877f16e5a5
IDN: Gisle Vanem made the win32 version handle a missing CHARSET environment
...
and then figure it out with a suitable windows call.
2004-04-27 15:19:28 +00:00
Daniel Stenberg
fbe1fa9dcc
outputed elsewhere already
2004-04-27 15:13:46 +00:00
Daniel Stenberg
5b0a5c4050
provide our own inet_ntoa_r() proto if the system has none on its own
2004-04-27 14:17:36 +00:00
Daniel Stenberg
4b9f8e766d
Made host name and proxy name get stored in a 'struct hostname' and set
...
all things up to work with encoded host names internally, as well as keeping
'display names' to show in debug messages. IDN resolves work for me now using
ipv6, ipv4 and ares resolving. Even cookies on IDN sites seem to do right.
2004-04-27 13:56:23 +00:00
Daniel Stenberg
80d2fff1a1
oops, .obj not .c!
2004-04-26 20:41:33 +00:00
Daniel Stenberg
e218811ca3
made the verbose connect use the proper host name string even when using
...
a proxy
2004-04-26 15:19:55 +00:00
Daniel Stenberg
a9f2274bd8
NI_MAXHOST is not generally available, we use plain 256 bytes for the hostname
...
instead, its only for debug verbose output anyway
2004-04-26 15:14:19 +00:00
Daniel Stenberg
92179ff990
corrected mistake
2004-04-26 15:11:56 +00:00
Daniel Stenberg
4aac210a83
Gisle fixed a mistaken check
2004-04-26 14:18:42 +00:00
Daniel Stenberg
245e3122df
Made defines instead of plain numbers for the Curl_resolv() return code to
...
make the code easier to read
2004-04-26 14:18:00 +00:00
Daniel Stenberg
f5042cce34
IDN adjustments and host cleanups by Gisle
2004-04-26 14:03:25 +00:00
Daniel Stenberg
712c67b4ae
no longer include curl/types.h, it serves no purpose
2004-04-26 14:02:51 +00:00
Daniel Stenberg
5dcfb8ad66
ignore the curl/types.h header file
2004-04-26 14:02:01 +00:00
Daniel Stenberg
92fc3f07ba
added the new files to the build
2004-04-26 12:33:14 +00:00
Daniel Stenberg
2370d4fa02
Curl_ip2addr() now takes an in_addr_t argument instead to prevent compiler
...
warnings
2004-04-26 12:02:33 +00:00
Daniel Stenberg
f128d904a5
removed assignment of variable never used
2004-04-26 11:56:05 +00:00
Daniel Stenberg
fb1039f2ab
Tor Arntsen fixed a 'Statement not reachable'-warning
2004-04-26 11:52:43 +00:00
Daniel Stenberg
8e935b58a2
TommyTam made a patch to handle stdin redirection for win32.
2004-04-26 07:50:51 +00:00
Daniel Stenberg
648e82f05d
Major hostip.c cleanup and split into multiple files and easier #ifdef
...
usage.
2004-04-26 07:20:11 +00:00
Daniel Stenberg
9631fa7407
added libidn awareness
2004-04-26 07:14:08 +00:00
Daniel Stenberg
9befc682ee
added many comments
2004-04-26 07:12:52 +00:00
Daniel Stenberg
fbeb674479
major update of the error strings
2004-04-26 07:12:29 +00:00
Daniel Stenberg
af641d20a7
added comments
2004-04-26 07:11:39 +00:00
Daniel Stenberg
d02587750c
added function headers and comments
2004-04-26 07:11:06 +00:00
Daniel Stenberg
3755bffcc2
Gisle Vanem found and fixed a memory leak when doing (failing) Windows
...
threaded name resolves.
2004-04-23 14:04:30 +00:00
Daniel Stenberg
2a0a305300
only a minor comment/format change
2004-04-23 11:00:47 +00:00
Daniel Stenberg
70e2aadc18
Replaced Curl_FormReadOneLine with Curl_formpostheader as that is the only use
...
for it. It saves one extra copy of the header.
I also added comments for several functions in formdata.c
2004-04-23 10:37:52 +00:00
Daniel Stenberg
550862f41a
missing brace
2004-04-22 21:27:32 +00:00
Daniel Stenberg
2ff30d067c
- David Byron found and fixed a small bug with the --fail and authentication
...
stuff added a few weeks ago. Turns out that if you specify --proxy-ntlm and
communicate with a proxy that requires basic authentication, the proxy
properly returns a 407, but the failure detection code doesn't realize it
should give up, so curl returns with exit code 0. Test case 162 verifies
this.
2004-04-22 20:07:41 +00:00
Daniel Stenberg
c323969bdd
removed Curl_ftp_quit() as it was turned into a static in ftp.c
2004-04-22 13:15:17 +00:00
Daniel Stenberg
1d3f76df71
If only a partial file was transfered, we consider that a fatal problem so
...
we won't try to QUIT the control connection and risk "hanging" waiting for
a response. Test case 161 verifies this. The quit-sending function was
also made static.
2004-04-22 13:09:00 +00:00
Daniel Stenberg
33cb93ad0b
Added comments
2004-04-22 12:35:45 +00:00
Daniel Stenberg
62b7c08bb3
include unistd.h as well for the close() proto on some platforms (like Tru64)
2004-04-21 11:18:42 +00:00
Daniel Stenberg
a85fa66cc8
typecast the tolower() argument to an int to prevent compiler warning
2004-04-21 11:15:35 +00:00
Daniel Stenberg
9ba010c629
typecast tolower/toupper arguments to int to make picky compilers complain
...
less
2004-04-21 11:15:02 +00:00
Daniel Stenberg
1401d909e8
Fix the "lingering close" problem when re-using a connection, as test case
...
160 shows.
We got no data and we attempted to re-use a connection. This might happen if
the connection was left alive when we were done using it before, but that was
closed when we wanted to read from it again. Bad luck. Retry the same request
on a fresh connect!
Deleted the sockerror variable again, it serves no purpose anymore.
2004-04-21 08:49:14 +00:00
Daniel Stenberg
3233322622
increase the headerbytecount for incoming "headers"
2004-04-21 08:47:57 +00:00
Daniel Stenberg
dc25cd6f3a
cleanup leftovers
2004-04-20 09:46:10 +00:00
Daniel Stenberg
b7a7600465
Cleaned up hostname/name/gname and path/ppath confusion. Removed the fixed-
...
length limit of the hostname part of the URL.
2004-04-20 07:53:24 +00:00
Daniel Stenberg
5887945828
Gisle Vanem corrected a mistake in a recent progress fix
2004-04-19 07:18:26 +00:00
Daniel Stenberg
78ebe3fa5a
Gisle made a failed connect output the reason for it
2004-04-17 11:33:47 +00:00
Daniel Stenberg
a8e8e51b14
NDEBUG should not be defined when CURLDEBUG is
2004-04-17 11:33:14 +00:00
Daniel Stenberg
592522ceaf
ftp->dirs[] is no longer terminated with a zero entry but ftp->dirdepth
...
should be used
2004-04-15 10:43:40 +00:00
Daniel Stenberg
4f84e6d9e2
removed the fixed dir depth limit in the FTP code
2004-04-15 07:52:39 +00:00
Daniel Stenberg
68e8a0f0d9
asking for CURL_IPRESOLVE_V6 when ipv6 addresses can't be resolved will
...
now cause the resolve function to return NULL immediately
2004-04-14 12:10:44 +00:00
Daniel Stenberg
1d0b5b507a
Curl_wait_for_resolv() could hang due to the bad timeout timer resolution and
...
some bad thinking on my part.
2004-04-14 11:43:26 +00:00
Daniel Stenberg
31a693b99a
Gisle Vanem's fix that makes the multi interface work on Windows again even
...
when not using ares.
2004-04-13 13:59:12 +00:00
Daniel Stenberg
b48bf7470d
proper typecast to prevent compiler warning
2004-04-13 10:42:32 +00:00
Daniel Stenberg
ee7d1d0701
remove an long time #defined struct member and use the actual "real" name
...
instead to make it easier to find/read
2004-04-13 07:37:28 +00:00
Daniel Stenberg
4e3aa250c4
Moved the 'tcp_nodelay' member to the proper 'UserDefined' struct within the
...
sessionhandle to make the duphandle() function work as supposed. Also tried
to start document functions the doxygen way (in the headers of the functions).
Can't make it work though...
2004-04-13 07:16:26 +00:00
Daniel Stenberg
eb6345de60
somewhat safer typecasting in case sizeof(long) != sizeof(void *) (is there
...
even such platforms?)
2004-04-12 06:55:25 +00:00
Daniel Stenberg
0fd3b7a00a
David Byron's patch for MSVC builds with zlib
2004-04-11 20:25:10 +00:00
Daniel Stenberg
2fd463e979
Dirk Manske increased the resolution for what the CURLINFO_*_TIME return.
2004-04-09 09:36:31 +00:00
Daniel Stenberg
72b1144b8c
getting only a 100 Continue response and nothing else, when talking HTTP,
...
is now treated as an error by libcurl
2004-04-07 14:27:54 +00:00
Daniel Stenberg
cf1f46e1ca
renamed the strtoofft() macro to curlx_strtoofft() to adjust to the curlx_*
...
concept, and added lib/README.curlx to explain details about it
2004-04-07 07:30:40 +00:00
Daniel Stenberg
8ed44e8dfb
New authentication code added, particularly noticable when doing POST or PUT
...
with Digest or NTLM. libcurl will now use HEAD to negotiate the authentication
and when done perform the requested POST.
2004-04-06 15:14:10 +00:00
Daniel Stenberg
5ca47f19d7
the pack_hostent() proto isn't used/needed with ipv6 is enabled.
...
time to restructure this source file!
2004-04-06 15:09:43 +00:00
Daniel Stenberg
9044fcbb5f
Gisle Vanem's fix for bug item #927979 reported by Nathan O'Sullivan.
...
Good enough?
2004-04-06 14:51:14 +00:00
Daniel Stenberg
7a82810b59
Added the curl source header and changed some comments
2004-04-06 14:07:04 +00:00
Daniel Stenberg
ca7f0852df
Gisle Vanem caught me breaking the windows version of Curl_strerror()
2004-04-06 12:02:36 +00:00
Daniel Stenberg
780b962336
provide these functions as curlx_* ones as this enables the curl app to
...
re-use these sources and functions for subsecond resolution timing
2004-04-06 10:15:10 +00:00
Daniel Stenberg
bbeb840916
up-to-date with reality
2004-04-06 07:59:11 +00:00
Daniel Stenberg
1b171b02ac
remove the general use of sys_nerr
2004-04-06 06:06:10 +00:00
Daniel Stenberg
7ba4d3464f
Dirk Manske's feedback:
...
* bring back subsecond resolution to CURLINFO_TOTAL_TIME
* Fix the Curl_pgrsDone() so that the final progress update is shown properly
2004-04-02 07:32:03 +00:00
Daniel Stenberg
03def138fe
Andrs Garca's updated mingw makefiles
2004-04-02 07:18:13 +00:00
Daniel Stenberg
ad9e83a90f
Dirk Manske's fix that makes sure we cancel the ares resolve when we time out
...
from a name resolve. Without this, we leak memory!
2004-04-01 08:40:36 +00:00
Daniel Stenberg
675db3a211
removed my previously attempted fix for ares timeouts, not needed
2004-04-01 07:04:58 +00:00
Daniel Stenberg
5804c995e1
Use the new HAVE_NI_WITHSCOPEID define instead of merely checking for the
...
existance of NI_WITHSCOPEID since some platforms have that define but still
can't function with it set.
2004-03-31 21:33:52 +00:00
Daniel Stenberg
ee1595dcd5
Roy Shan fixed a case that prevented ares name resolve timeouts to occur.
2004-03-31 20:50:01 +00:00
Daniel Stenberg
9d0330d5bd
Remove the elapsed time from the most recent select() only.
2004-03-31 13:19:41 +00:00
Daniel Stenberg
d5074f74bb
The asynch name resolve methods now all use CURL_TIMEOUT_RESOLVE for
...
the specific time to wait for a resolve. The definition is at the top of
this source file.
2004-03-31 12:55:24 +00:00
Daniel Stenberg
ea0cf7c87b
Dirk Manske found out the Curl_wait_for_resolv() timed out too early.
2004-03-31 12:45:26 +00:00
Daniel Stenberg
cd95bb22ea
added include to fix warning
2004-03-31 11:55:56 +00:00
Daniel Stenberg
1745ecd8ac
* Fixed a memory leak when doing repeated re-negotiations.
...
* Made the incoming line parser more forgiving to allow "name=contents" pairs
where the contents isn't within double quotes.
* Made the digest code return CURLDIGEST_BADALGO if a requested algorithm
isn't supported by the code.
2004-03-31 11:55:07 +00:00
Daniel Stenberg
ce446dbdc2
Moved the NI_WITHSCOPEID magic #ifdef to the top of the file and made sure
...
we use the NIFLAGS properly on both places in the code that use getnameinfo().
2004-03-31 10:59:48 +00:00
Daniel Stenberg
dd2add82ee
Fixed how the user name is extracted from http_proxy environment variable
...
when set.
2004-03-31 10:46:06 +00:00
Daniel Stenberg
40d9855df2
Andrs Garca fixed a warning in the ioctlsocket() usage.
2004-03-31 10:34:53 +00:00
Daniel Stenberg
931c847e2b
CURLDIGEST_BADALGO is a new return code from the digest code
2004-03-31 09:20:27 +00:00
Daniel Stenberg
d5b8971ff3
typecast setsockopt()'s 4th argument to void * to make compilers complain
...
less
2004-03-30 13:05:45 +00:00
Daniel Stenberg
7ea837a18c
adjusted to the new dns cache function to hide more hostip internals
2004-03-30 13:02:31 +00:00
Daniel Stenberg
b8b8473b6d
Lots of comments added an clarified. Added timeout for the ares version
...
of Curl_is_resolved() to address Roy Shan's reported problem.
2004-03-30 13:02:07 +00:00
Daniel Stenberg
894dbae455
added stale boolean to the digest struct
2004-03-30 13:00:53 +00:00
Daniel Stenberg
2c11425868
first attempt to support stale=true
2004-03-30 13:00:32 +00:00
Daniel Stenberg
76f23acfa1
if 0'ed out a code section that uses __FUNCTION__ etc, used for debugging
...
the new "fail with auth" code
2004-03-30 08:21:09 +00:00
Daniel Stenberg
6950aeafcc
init the dns pointer to NULL for clarity
2004-03-30 08:14:37 +00:00
Daniel Stenberg
cd160a66c9
added more comments for what the functions return
2004-03-30 08:11:54 +00:00
Daniel Stenberg
8e92600ddd
David Byron made CURLOPT_FAILONERROR work with authentications such as NTLM
...
or Digest.
2004-03-30 06:40:01 +00:00
Daniel Stenberg
5e75c310ba
'authdone' was added to the sessionhandle and thus was removed from the
...
argument to the NTLM function(s)
2004-03-30 06:39:24 +00:00
Daniel Stenberg
20cab07c29
David Byron added 'authdone' to the SessionHandle.
2004-03-30 06:38:52 +00:00
Daniel Stenberg
dc46f535ae
The select() timeout is better not static since some implementation actually
...
might change it. I don't *think* it does it when the timeout is 0,0 but it
is better to be sure...
2004-03-29 21:29:24 +00:00
Daniel Stenberg
126ed14313
Gisle Vanem's djgpp/MS-DOS updates
2004-03-29 12:29:25 +00:00
Daniel Stenberg
4b49b2e3cf
re-indented to use curl-standard source formatting
2004-03-29 07:25:59 +00:00
Daniel Stenberg
d85c21994f
netinet/tcp.h may require netinet/in.h to be include before
2004-03-29 06:22:57 +00:00
Daniel Stenberg
ed22afe5fb
Tor fixed a left-over from the ip argument to setnodelay
2004-03-27 11:15:50 +00:00
Daniel Stenberg
843391c745
Gisle Vanem:
...
A patch to bypass MS' sillyness with regard to IPv6 and getaddrinfo().
The CURLDEBUG part is to avoid redefinition warning caused by memdebug.h. If
ENABLE_IPV6 isn't enabled, it doesn't matter since we never call
getaddrinfo(). Allthough we could to support weird protocols like SOCK_RDM
that Win-2K/XP has.
2004-03-26 13:47:46 +00:00
Daniel Stenberg
43137cf595
check for netinet/tcp.h precense before actually including it
2004-03-26 07:10:15 +00:00
Daniel Stenberg
db6dc49b0b
removed the ip number from the notcpdelay function
2004-03-26 07:03:30 +00:00
Daniel Stenberg
e21104a865
only output one line about the nodelay even if it fails
2004-03-25 14:01:01 +00:00
Daniel Stenberg
3ecf63fa66
win32 doesn't need and even doesn't build if we extern declare sys_nerr
2004-03-25 13:43:19 +00:00
Daniel Stenberg
762dcf0780
include the strerror.h file without curl_ prefix
2004-03-25 13:42:23 +00:00
Daniel Stenberg
75ee9b5333
strerror without prefix
2004-03-25 13:40:57 +00:00
Daniel Stenberg
e161bdc5be
cut off 'curl_' from the strerror file names
2004-03-25 13:40:24 +00:00
Daniel Stenberg
bb3d6e8552
tcp-nodelay patch by Joe Halpin
2004-03-25 13:37:18 +00:00
Daniel Stenberg
189c2f4989
so there are at least two different strerror_r() versions and our brand
...
new configure script detects them and now this code acts according to what
API that was detected
2004-03-25 12:45:01 +00:00
Daniel Stenberg
0953140b53
added curl_strerror to the build
2004-03-25 07:53:37 +00:00
Daniel Stenberg
6c2825997a
extern declare the sys_nerr variable. Required on Solaris at least.
2004-03-25 07:52:11 +00:00
Daniel Stenberg
accc6eb91a
Always include setup.h as the first header file.
...
Added a more verbose comment about what strerror_r() can set errno to in
case of failure.
This file still doesn't build on Solaris due to a missing 'sys_nerr' symbol.
2004-03-25 07:33:11 +00:00
Daniel Stenberg
dc9d0f256d
missed the new header file
2004-03-24 22:46:02 +00:00
Daniel Stenberg
b60d6404d8
Gisle Vanem's fix to replace the bad use of strerror(). This introduces
...
Curl_strerror() that attempts to be thread-safe _and_ works on Windows too!
2004-03-24 22:45:37 +00:00
Daniel Stenberg
08fe4b3210
new header file - for Curl_strerror()
2004-03-24 22:43:09 +00:00
Daniel Stenberg
2cf218610e
keep current_speed as an curl_off_t for better precision at higher speeds
...
if large file support is available
2004-03-23 16:01:31 +00:00
Daniel Stenberg
fe6f0aeb26
switch() on the right variable!
2004-03-23 15:48:27 +00:00
Daniel Stenberg
bd04c6fb67
curl_strequal() returns int, keep return variables in an int
2004-03-23 15:30:12 +00:00
Daniel Stenberg
c5637baa06
make the variables that hold the result of strlen() size_t
2004-03-23 15:28:31 +00:00
Daniel Stenberg
f8426a2c44
stricter variable type usage
2004-03-23 15:25:54 +00:00
Daniel Stenberg
0c791d1e76
variable type usage cleanup to please picky compilers
2004-03-23 15:20:57 +00:00
Daniel Stenberg
c4a89d29f6
get strlen() results in a size_t, delete 'register'
2004-03-23 15:14:57 +00:00
Daniel Stenberg
306ff5649a
made time2str() use longs internally instead to prevent compiler warnings
...
when converting to ints
2004-03-23 15:06:14 +00:00
Daniel Stenberg
1c652dfc5d
added explicit typecasts to prevent compiler warnings on variable conversions
2004-03-23 15:01:19 +00:00
Daniel Stenberg
1f61e7f8f4
If localbind fails, provide a more portable error message.
2004-03-23 14:43:42 +00:00
Daniel Stenberg
0aa720fa26
it actually fits to make a NNNd NNh display so this can be used up to
...
999 days
2004-03-23 11:46:31 +00:00
Daniel Stenberg
d44f3f84f8
Fixed the time fields no never get wider than 8 letters. They can now switch
...
to a "days + hours" or even "just days" display if the time value is very
large. I also switched several calculations over to fixed-point instead of the
previous doubles.
2004-03-23 11:43:34 +00:00
Daniel Stenberg
76c36688d0
Makes CURLINFO_CONTENT_LENGTH_DOWNLOAD work even if CURLOPT_NOBODY is set
...
true.
2004-03-22 22:38:12 +00:00
Daniel Stenberg
dd1ba7633e
Enabled 'NT responses' in the NTLM type-3 message.
2004-03-22 13:50:30 +00:00
Daniel Stenberg
a4ea5a4054
fixed /I "." for the debug build too
2004-03-22 11:32:22 +00:00
Daniel Stenberg
69060b1382
add /I "." to include ca-bundle.h properly
2004-03-22 11:26:40 +00:00
Daniel Stenberg
ad3563096a
include the new curlver instead, since all this wants is the version info
2004-03-22 08:54:26 +00:00
Daniel Stenberg
5b75919f95
Marty Kuhrt's adjustments for a cleaner VMS build
2004-03-21 22:44:52 +00:00
Daniel Stenberg
760ca6adc4
added http_ntlm.[ch] and inet_pton.[ch], pointed out by Watz
2004-03-17 21:30:26 +00:00
Daniel Stenberg
ffb35ff5c3
Gnter Knauf's update, mainly converted to plain old C comments.
2004-03-17 13:36:45 +00:00
Daniel Stenberg
8eda06131b
new netware-related files added to the distribution
2004-03-17 12:48:41 +00:00
Daniel Stenberg
5b55f9ecb3
Gnter Knauf's NetWare changes.
2004-03-17 12:46:42 +00:00
Daniel Stenberg
fc67cca882
removed the min() macro define
2004-03-16 09:16:38 +00:00
Daniel Stenberg
256a16a8a3
if the global_init() is called from within curl_easy_init() and returns
...
an error code, we now make curl_easy_init fail and return NULL.
2004-03-15 16:28:36 +00:00
Daniel Stenberg
8f77030473
Initial commit of the first attempt to make three new *strerror() functions.
...
No protos in the headers yet and no docs.
2004-03-15 11:51:32 +00:00
Daniel Stenberg
f788f988ea
fix signed and unsigned warnings
2004-03-14 18:15:04 +00:00
Daniel Stenberg
d04ffd258b
postsize is off_t now, so we typecase it to int before doing normal printf
...
with it (knowing it won't be larger than what fits in an int)
2004-03-13 17:11:42 +00:00
Daniel Stenberg
24cfa7f1bb
the postsize is an off_t so use the proper printf format to output the
...
content-length when doing multipart posts
2004-03-13 17:03:17 +00:00
Daniel Stenberg
94a1d09ac7
more variable type fixing for the huge posts
2004-03-12 14:22:16 +00:00
Daniel Stenberg
4ad68ec305
more variable type fixes for the large POST support
2004-03-12 13:06:01 +00:00
Daniel Stenberg
ef776ab893
Made the 'postsize' variable an off_t type to be able to hold large file
...
sizes if desired
2004-03-12 12:07:01 +00:00
Daniel Stenberg
1ebda8fa0e
Added CURLOPT_POSTFIELDSIZE_LARGE to offer a large file version of the
...
CURLOPT_POSTFIELDSIZE option to allow really big HTTP POSTs.
2004-03-12 08:55:47 +00:00
Daniel Stenberg
9d064a3927
dl and ulspeed are now curl_off_t so typecast them to double when we
...
return their values
2004-03-11 21:51:55 +00:00
Daniel Stenberg
1d5a914c1c
Made max5data() take a curl_off_t size as argument instead of double. Should
...
make the progress meter more accurate for large files. Also made the sprintf
usage in that function avoid floating point.
2004-03-11 21:48:15 +00:00
Daniel Stenberg
e545e33d5f
Gisle Vanem's fixes to use CURL_SOCKET_BAD more instead of -1 for sockets.
2004-03-11 13:13:35 +00:00
Daniel Stenberg
326e8b9fc1
don't let the EINTR stuff build on windows
2004-03-11 12:57:04 +00:00
Daniel Stenberg
0d1fc73f21
Use more curl_off_t variables when doing the progress meter calculations and
...
argument passing and try to convert to double only when providing data to the
external world.
2004-03-10 16:20:33 +00:00
Daniel Stenberg
7225b14002
curl_socket_t mistakes cleanup
2004-03-10 16:01:47 +00:00
Daniel Stenberg
85838a8966
turn niflags into a define named NIFLAGS
2004-03-10 15:24:56 +00:00
Daniel Stenberg
b45d50ccc2
Nah, ignore the OS define in here. This is being included by ares and it
...
certainly doesn't need the OS define.
2004-03-10 10:19:32 +00:00
Daniel Stenberg
c39c55cb2d
Minor edit to avoid an unreachable break and to remove the extra {} body
...
within the switch.
2004-03-10 09:50:12 +00:00
Daniel Stenberg
cf004cbc7e
keep the number of bytes read in a size_t variable
2004-03-10 09:44:42 +00:00
Daniel Stenberg
9948250723
strequal() returns int so we typecast the return to bool when we store the
...
result as bool
2004-03-10 09:41:37 +00:00
Daniel Stenberg
47afa058a8
store times in time_t
2004-03-10 09:36:43 +00:00
Daniel Stenberg
40e892bb36
Jeff Lawson fixed the SSL connection to deal with received signals during the
...
connect.
2004-03-10 08:43:01 +00:00
Daniel Stenberg
bc6f3beb9c
Now requires an OS string defined by the config*.h file
2004-03-10 08:15:50 +00:00
Daniel Stenberg
f9e1f32adb
make windows builds use the OS string "i386-pc-win32" instead of just "win32"
...
to make it more like other OS strings
2004-03-10 08:14:22 +00:00
Daniel Stenberg
22f4d81f3e
Make sure SIZEOF_CURL_OFF_T is defined before we check for it being > 4.
...
It is only undefined when this file is included by others (like ares) and
in those cases it doesn't matter.
2004-03-10 08:08:02 +00:00
Daniel Stenberg
0d1f80ccb5
removed the #if 0'ed pragmas that disable warnings on msvc
2004-03-10 07:04:31 +00:00
Daniel Stenberg
4e87dd89bf
moved the curl_socket_t typedef downwards
2004-03-10 07:03:13 +00:00
Daniel Stenberg
ce5805a955
Use curl_socket_t instead of int for holding sockets. The typedefs and
...
defines are in setup.h.
2004-03-09 22:52:50 +00:00
Daniel Stenberg
52d85341ae
only build with the windows threading trace code if
...
DEBUG_THREADING_GETHOSTBYNAME is defined
2004-03-09 21:42:43 +00:00
Daniel Stenberg
7b2869338d
explicit typecast to visualize that we really want the result of the
...
operation as a size_t
2004-03-09 21:39:50 +00:00
Daniel Stenberg
ab35b2837f
Tor Arntsen's fix to a AIX build problem
2004-03-09 21:25:59 +00:00
Daniel Stenberg
bab9f532f2
added HAVE_IOCTLSOCKET here
2004-03-09 08:35:33 +00:00
Daniel Stenberg
702021e099
don't compare signed/unsigned
2004-03-08 16:20:51 +00:00
Daniel Stenberg
2c756fa1d7
Commented the Curl_read() arguments.
2004-03-08 12:37:46 +00:00
Daniel Stenberg
385086b460
size_t/int fix
2004-03-08 12:37:11 +00:00
Daniel Stenberg
72a4715dff
strlen() returns size_t
2004-03-08 12:36:54 +00:00
Daniel Stenberg
576be36249
waitconnect() takes the timeout argument as a long
2004-03-08 11:36:47 +00:00
Daniel Stenberg
c52c592f4c
store size as size_t
...
use %zd when outputting size_t
2004-03-08 11:33:49 +00:00
Daniel Stenberg
d9ffd2f544
don't use 'register'
...
make strtol() returns get stored in long variables
don't mix size_t with int
2004-03-08 11:28:14 +00:00
Daniel Stenberg
a684c51c9b
size_t/int/long fixes
2004-03-08 08:38:29 +00:00
Daniel Stenberg
3fa4ac080e
we must not only support long long for Largefile to work, we must have
...
a curl_off_t type that is larger than 4 bytes
2004-03-08 07:46:26 +00:00
Daniel Stenberg
498666bdc3
issue 12 fix
2004-03-05 12:54:18 +00:00
Daniel Stenberg
3d3612e252
another include to prevent warnings
2004-03-05 11:39:19 +00:00
Daniel Stenberg
6717240650
more fixing to make the progress/getinfo stuff to work properly when doing
...
file: transfers too
2004-03-05 09:40:16 +00:00
Daniel Stenberg
ef0a2c714b
clearly tell that these are ftp response timeouts
2004-03-05 09:37:48 +00:00
Daniel Stenberg
465753c2de
When following to a new URL, we must make sure to call Curl_done() first,
...
since the current connection must be taken care of properly before we move
on. Christopher R. Palmer reported a problem he found due to this mistake.
2004-03-04 16:13:33 +00:00
Daniel Stenberg
e40392ac03
Andrs Garca's patch to prevent warnings while compiling with mingw, mainly
...
because it is now possible to have both WIN32 and HAVE_CONFIG_H defined.
2004-03-04 15:32:18 +00:00
Daniel Stenberg
1eb9fd6c4d
use size_t for the data, but keep the protos use ssize_t to better fit
...
with the existing transfer.c code
2004-03-04 15:25:06 +00:00
Daniel Stenberg
78e47fbb5c
include the proper header file too
2004-03-04 15:23:57 +00:00
Daniel Stenberg
2b59e90c54
fix progress data to be updated properly for file: transfers, as reported
...
by Jesse Noller
2004-03-04 15:12:12 +00:00
Daniel Stenberg
59a30e6d9b
prevent harmless compiler warning
2004-03-04 12:57:12 +00:00
Daniel Stenberg
2479e06848
David Byron's work on making libcurl only require winsock 1.1 on Windows
...
machines.
2004-03-03 13:32:56 +00:00
Daniel Stenberg
5e7f1a0eaf
more variable type cleanups
2004-03-03 13:24:14 +00:00
Daniel Stenberg
eb9383d49b
our timeout values are longs while 'tv_sec' is int
2004-03-03 13:17:44 +00:00
Daniel Stenberg
817d17354e
make the backup variable of the same kind as the data it backups! ;-)
2004-03-03 13:12:30 +00:00
Daniel Stenberg
88e226c686
some more size_t usage, and two added typecasts when converting from size_t
...
to long (MIPSpro warnings)
2004-03-03 13:11:28 +00:00
Daniel Stenberg
9116dd41bd
tv_sec is an int, so we explicitly typecast the result of long - long to
...
an int when we assign it.
2004-03-03 13:07:32 +00:00
Daniel Stenberg
b2ef40731a
Tom Bates' adjustment to build on his nsr-tandem-nsk.
2004-03-03 09:27:18 +00:00
Daniel Stenberg
e2f7030202
rename struct FILE to FILEPROTO, to prevent it from causing trouble with
...
the plain old FILE typedef.
2004-03-03 09:25:59 +00:00
Daniel Stenberg
7c85be9435
corrected the reuse_fresh condition
2004-03-02 14:00:44 +00:00
Daniel Stenberg
353f764119
Yet another curl_off_t printf format attempt, we now exclude the %-letter from
...
FORMAT_OFF_T to allow additional options to get specified, like with '"%5"
FORMAT_OFF_T'.
2004-03-02 09:31:18 +00:00
Daniel Stenberg
7ab3b5b3bb
use FORMAT_OFF_T instead of CURL_FORMAT_OFF_T to reduce the complexity of
...
having to redef that name
2004-03-02 07:25:39 +00:00
Daniel Stenberg
00d5f886e3
- we switch to simply use FORMAT_OFF_T internally
...
- Also, we must not assume that SIZEOF_CURL_OFF_T is defined, as this file
gets included from the ares dir at times and then it isn't defined.
2004-03-02 07:25:08 +00:00
Daniel Stenberg
cb72a80fe0
Use CURL_FORMAT_OFF_T for printf()inf curl_off_t variables.
2004-03-01 16:28:00 +00:00
Daniel Stenberg
71d81f1f75
Now uses CURL_FORMAT_OFF_T instead of %Od
...
Fixed the check for bad resumes. Made test case 99 work and proved a bug
in test case ... eh, was it 32?
2004-03-01 16:27:34 +00:00
Daniel Stenberg
7983ec84a7
set CURL_VERSION_LARGEFILE if we support large files
2004-03-01 16:24:04 +00:00
Daniel Stenberg
8cb2a68694
define ENABLE_64BIT if we have enabled 64bit large files
...
define our internal CURL_FORMAT_OFF_T define, we don't use the global one!
2004-03-01 16:23:35 +00:00
Daniel Stenberg
485122035c
fixed the test code to work
2004-03-01 16:22:17 +00:00
Daniel Stenberg
4d12be9867
removed an unnecessary shift and splut up som weird two-statements-per-line
...
code
2004-03-01 12:54:59 +00:00
Daniel Stenberg
5eeaff8235
Support 'z' for size_t-sized integer printing, as in %zd or %zx.
2004-03-01 12:44:07 +00:00
Daniel Stenberg
7d2e872828
Only consider the fresh-connection option on the first connection made, not
...
on followed redirections etc. This should fix the bug #905365 , which caused
NTLM to fail with the option set.
2004-03-01 09:43:42 +00:00
Daniel Stenberg
4dfc0a78e7
Only attempt to send the FTP QUIT command if we actually have a FTP struct.
2004-03-01 07:59:25 +00:00
Daniel Stenberg
82bd583251
in Curl_disonnect(): call the protocol-specific disconnect function before we
...
unlink the "current" connection struct from the connection cache.
2004-03-01 07:19:26 +00:00
Daniel Stenberg
6c78b4b7c0
fixed some more size_t/int/long warnings and removed a few CMC comments
2004-02-27 13:21:14 +00:00
Daniel Stenberg
77268e0649
Joe Halpin made the FTP code send 'QUIT' on the control connection before
...
it disconnects the TCP connection, like a good ftp client should!
2004-02-27 07:08:37 +00:00
Daniel Stenberg
4515d06465
David Byron's fixes to make the latest curl build fine under MSVC 6.
2004-02-26 16:23:28 +00:00
Daniel Stenberg
07de0ff0ff
Gisle Vanem's added support calloc()-debugging and outputting mode for
...
fopen() as well.
2004-02-26 14:52:51 +00:00
Daniel Stenberg
7d8cd5906c
use calloc instead of malloc and we won't have to memset() the struct
2004-02-26 14:52:16 +00:00
Daniel Stenberg
d571064b65
Clear up int/long/size_t/ssize_t usage a bit
2004-02-26 13:40:43 +00:00
Daniel Stenberg
d687eed33e
use %ld when printf()ing long variables (and removed use of 'register')
2004-02-26 12:32:29 +00:00
Daniel Stenberg
be2cdf14f3
Don't call the lock/unlock functions if they are NULL. They can still be
...
NULL without violating protocol.
2004-02-26 11:39:38 +00:00
Daniel Stenberg
f9b2b7940e
disable the use of long double, we don't use it
2004-02-25 15:34:05 +00:00
Daniel Stenberg
df94c7aedc
Based on a patch by Greg Hewgill I modified how long long is used, as we
...
can use a 64bit type with MSVC that is a long long equivalent.
2004-02-25 14:15:38 +00:00
Daniel Stenberg
f128fae705
fixed some warnings in the (both new and old) base64 usage
2004-02-23 16:09:39 +00:00
Daniel Stenberg
2ae4420869
make newer MSCV7 compilers use _strtoi64() as a strtoll() replacement
2004-02-23 14:24:49 +00:00
Daniel Stenberg
888eec833c
Removed getpass from here. The fact this still was present here indicates
...
that this file is out of date!
2004-02-23 12:01:10 +00:00
Daniel Stenberg
2911e63bc2
curl_off_t is 8 bytes big on windows
2004-02-23 11:59:28 +00:00
Daniel Stenberg
34d247bc4e
switch the arguments according to the c source
2004-02-23 11:44:03 +00:00
Daniel Stenberg
99bc7e5fd3
oops, the decode() function got its arguments reversed in my cleanup
...
operation!
2004-02-23 11:39:21 +00:00
Daniel Stenberg
f35c28214e
use size_t to keep strlen() results
2004-02-23 08:38:49 +00:00
Daniel Stenberg
35fd1365ae
simplied how create_hostcache_id() is used, and also its function somewhat
...
cleared up some ssize_t/size_t mixups
2004-02-23 08:35:57 +00:00
Daniel Stenberg
f493081004
adjusted to the modified base64 protos
2004-02-23 08:24:53 +00:00
Daniel Stenberg
e1b5e15431
More size_t cleanups in the base64 functions.
2004-02-23 08:22:43 +00:00
Daniel Stenberg
1aba4c519b
The base64 encode function now takes a size_t for size, not an int as
...
previously.
2004-02-23 08:07:55 +00:00
Daniel Stenberg
0ffec4272a
the missing part of Gisle Vanem's connect-timeout fix for win32
2004-02-22 22:31:24 +00:00
Daniel Stenberg
4bde770169
added some extra typecasts to prevent compiler warnings when converting
...
int to various types
2004-02-21 15:05:46 +00:00
Daniel Stenberg
9af7e46f72
inlcude krb4.h to get the proto for Curl_krb_kauth() to satisfy picky
...
compilers
2004-02-21 14:57:29 +00:00
Daniel Stenberg
7d844c430c
Gisle Vanem brings name resolving timeout possibilities to windows people.
...
This works by magicly starting up a new thread that can be killed when the
timeout is reached. testtesttest!
2004-02-20 16:41:50 +00:00
Daniel Stenberg
44995d6877
Some compilers warn on completely empty source files, we provide a blank
...
one to prevent that.
2004-02-20 16:22:47 +00:00
Daniel Stenberg
2ebc821558
Convert functions to ANSI-style declaration to prevent compiler warnings
2004-02-20 16:18:26 +00:00
Daniel Stenberg
b2e1bf7e7d
No longer support Z as a flag to print size_t, it isn't used by libcurl
...
and I doubt anyone else uses it.
Better preprocessor magic for the O flag (for curl_off_t printing) to prevent
compiler warnings.
2004-02-20 15:16:31 +00:00
Daniel Stenberg
a39669198f
we call the macro CURLMAX() isntead of MAX(), just because it turned up
...
it collides with another MAX define on some platforms (like netbsd 1.6.1)
2004-02-20 08:47:23 +00:00
Daniel Stenberg
2c0c75e345
oops, missed a define when I changed from Curl_ to curlx_
2004-02-20 07:22:25 +00:00
Daniel Stenberg
c6e5b67197
Doug Porter's patch that changes the order of preferences on how to find the
...
default netrc file. We now read and uses HOME _before_ we use getpwuid() to
better allow users to move around HOME to use different .netrc files without
having to rely on even blacker magic.
2004-02-19 09:22:00 +00:00
Daniel Stenberg
0bf1bd51c4
Remade to use curlx_-prefix. This means this function can be compiled and
...
linked separately by the application. This function is not provided by the
libcurl API. It can only be accessed by apps if they compile and use this
particular source code.
2004-02-19 08:12:13 +00:00
Daniel Stenberg
9efddfedab
removed some "jhrg" from comments
2004-02-18 15:28:56 +00:00
Daniel Stenberg
de681d3b8f
Made curl_accept() take a 'void *' instead of 'socklen_t *' in the 3rd
...
argument to also not force the casual includer to know about the socklen_t
type.
2004-02-18 12:22:56 +00:00
Daniel Stenberg
f33be3c313
Modified curl_accept() to take a 'void *' in the 2nd argument instead of
...
sockaddr *. This has the added benefit that source files that include
memdebug.h doesn't have to know about "sockaddr".
2004-02-18 12:18:33 +00:00
Daniel Stenberg
62a12b7faf
No longer uses the 'ret' variable in the plain ipv4-version of
...
my_getaddrinfo() (caused a warning by the IRIX MIPSPro compiler). Also
clarified the situation for the 3-arg version of gethostbyname_r() with a huge
comment.
2004-02-18 10:05:17 +00:00
Daniel Stenberg
abd7e32c66
simplified and better commented config.h include logic
2004-02-18 08:35:51 +00:00
Daniel Stenberg
e2b6a45cfa
Make sure dns cache timeout -1 really means forever, as it is documented to
...
be. Simply skip the pruning.
2004-02-18 07:56:18 +00:00
Daniel Stenberg
09aa165942
support closesocket() for closing sockets as well, as then we can use this
...
code fine on ares!
2004-02-16 16:24:01 +00:00
Daniel Stenberg
f2fbb5f3d5
Make realloc() support NULL as pointer. Made to allow us to use these routines
...
to memdebug the ares stuff as well.
2004-02-16 16:23:19 +00:00
Daniel Stenberg
ccdaa0b51f
Make the 'areschannel' get created in the curl_easy_init() and re-use that
...
same channel during the whole curl handle's life until curl_easy_cleanup().
2004-02-16 15:24:22 +00:00
Daniel Stenberg
39926181ea
Fix verbosconnect() when ipv6-enabled to not assume that conn->serv_addr
...
is a valid pointer, but instead always depend on the passed-in dns pointer.
This happens to be NULL when the connection is re-used...
2004-02-16 13:14:55 +00:00
Daniel Stenberg
8415b4a271
removed usage of a silly macro instead of the actual functions memcpy
...
and memset
2004-02-16 09:56:18 +00:00
Daniel Stenberg
e4916145ef
Jeff Lawson pointed out that we need to check for a '5' in the version field
...
to properly work with SOCKS5 proxies. I also included some ascii art describing
the SOCKS5 response, as RFC1928 describes. Jeff provided details in bug
report #741841 and here: http://curl.haxx.se/mail/lib-2004-02/0181.html
2004-02-16 07:33:30 +00:00
Daniel Stenberg
a7e04cac78
Mark the dns entry 'inuse' properly even when used from the cache. This
...
seems to correct some host cache screw-ups I could reproduce.
2004-02-15 16:57:53 +00:00
Daniel Stenberg
8ddc18a4f9
another case which should use CURLcode and not int
2004-02-15 13:58:57 +00:00
Daniel Stenberg
0d3aa8b7be
Use the was_iface variable when binding a socket locally, even if no
...
SO_BINDTODEVICE is present, to prevent compiler warnings about the variable
2004-02-15 13:55:24 +00:00
Daniel Stenberg
0612c275a7
(void) functions we don't check the return code for
2004-02-15 13:48:50 +00:00
Daniel Stenberg
f3d91528a1
CURLcode/int cleanup to reduce IRIX warnings
...
Removed some dates/names in the comments.
2004-02-15 13:48:28 +00:00
Daniel Stenberg
7abf2f44ec
in the socks code, make sure we receive Curl_read results in ints and
...
Curl_write in CURLcode, to keep the picky compilers happy
2004-02-13 12:42:37 +00:00
Daniel Stenberg
4d17e77532
use CURLcode, not int, prevents picky compilers to warn
2004-02-13 12:16:24 +00:00
Daniel Stenberg
6a921197e2
the now and start variables were never really used
2004-02-13 12:13:30 +00:00
Daniel Stenberg
fa57a8a78e
Ben Greear's SO_BINDTODEVICE patch that binds to a network interface "even
...
more" when the previous approach. Known to work on Linux, possibly on other
platforms as well.
2004-02-13 09:50:23 +00:00
Daniel Stenberg
e7d9ea8919
Greg Hewgill found out 'contentlength' wasn't big enough to hold a large file!
2004-02-13 07:12:40 +00:00
Daniel Stenberg
115e74a8ad
I made the same fix here, that Tor already did in the ftp.c code. To make
...
sure this doesn't get weird on 64bit archs.
2004-02-13 07:03:03 +00:00
Daniel Stenberg
1b26fe39f9
Tor Arntsen's fix for the bad (64bit wise) typecast when using gmtime()
2004-02-13 06:59:49 +00:00
Daniel Stenberg
4674f3f115
Make hostcache_fixoffset() take a long for offset, to fully work with 64bit
...
archs, also no longer typecast pointers to ints as that is a nono on 64bit
systems.
2004-02-12 16:02:55 +00:00
Daniel Stenberg
5d64d657de
removed the subchar variable, it was only set and never used
2004-02-12 09:53:03 +00:00
Daniel Stenberg
52caba0417
removed the ldaptext variable, it was only set and never used
2004-02-12 09:51:43 +00:00
Daniel Stenberg
ad1a70205f
removed the nth variable, it was only set and never used anyway
2004-02-12 09:50:44 +00:00
Daniel Stenberg
d57eed6f22
No longer receive the return code in ConnectionKillOne() that wasn't dealt
...
with anyway and thus caused picky compiler to warn.
2004-02-12 09:48:27 +00:00
Daniel Stenberg
50efb8f33e
#if-check for SIGALRM before assuming it is present
2004-02-11 21:11:08 +00:00
Daniel Stenberg
93e32e6f62
Modified the default HTTP Accept: header to only be Accept: */*
2004-02-09 12:46:41 +00:00
Daniel Stenberg
2d0b2f294f
Oops. I broke the flow with the previous commit.
2004-02-09 11:40:00 +00:00
Daniel Stenberg
3bdc883c93
some annoying compilers warn about "(void)foo;" lines so we avoid them
2004-02-09 08:34:19 +00:00
Daniel Stenberg
011929cf4d
Tor Arntsen's patch for working around a notorious bug in the AIX5
...
getaddrinfo() implementation.
2004-02-09 07:52:36 +00:00
Daniel Stenberg
f56d753507
A custom Host: header is only considered if the request is not made by
...
following a location. After discussions with Tim Baker.
2004-02-06 08:11:58 +00:00
Daniel Stenberg
e5165af5a6
The MIPSPro compiler complains on constructs such as "(void)foo;" so
...
we avoid it where possible.
2004-02-06 07:59:16 +00:00
Daniel Stenberg
83e878420a
Make sure DynaGetFunction() returns a function pointer, not a data pointer.
...
The standards don't actually allow typecasts between data and functions so
some picky compilers warn about this.
2004-02-06 07:28:49 +00:00
Daniel Stenberg
1cb2306ae0
Andrs Garca's updates
2004-02-05 21:03:53 +00:00
Daniel Stenberg
cc90a235f4
if an empty 'transfer-encoding:' header is provided, we switch off the
...
chunky coding of uploads
2004-02-05 15:50:16 +00:00
Daniel Stenberg
dc753b8315
Gisle Vanem fixed a windows compiler warning
2004-02-05 13:25:14 +00:00
Daniel Stenberg
f71139750d
options we get as longs need to be typecasted when assigned to prevent
...
picky compiler warnings
2004-02-05 09:38:56 +00:00
Daniel Stenberg
690b3e58b2
fix return type to silence compiler warnings
2004-02-05 09:38:10 +00:00
Daniel Stenberg
0c7cb0c10f
prevent warning from that picky MIPSpro compiler
2004-02-05 09:37:46 +00:00
Daniel Stenberg
4816294f52
compiler warning fix, compare struct pointers of the same type
2004-02-05 09:37:04 +00:00
Daniel Stenberg
6587ff440a
use the timeout options when waiting for the server to connect when using
...
PORT
Provide better error messages to allow debugging if one if the ipv6-related
name functions fail in the ftp_use_port() function. This might help us
diagnose the problems on AIX. Also make sure getaddrinfo() uses NULL and
not "0" for the service argument.
2004-02-05 09:26:01 +00:00
Daniel Stenberg
791e49134b
hide the pack_hostent proto if ipv6 is enabled, as figured out by Tor Arntsen
2004-02-05 08:34:31 +00:00
Daniel Stenberg
556b68f44e
the unused quit-function didn't pass a correct variable type to the
...
response reading function
2004-02-03 09:52:32 +00:00
Daniel Stenberg
95dd343244
added the missing ares numerical version initialiser
2004-02-03 06:39:37 +00:00
Daniel Stenberg
0412a201a3
undef accept before defining it, since AIX 5.2 has it as a define!
2004-02-02 21:34:01 +00:00
Daniel Stenberg
c2967c3c39
now provides c-ares version info in both version calls
2004-02-02 16:24:41 +00:00
Daniel Stenberg
886391d145
adjusted to the modified ares_strerror() function
...
NOTE that this breaks ares-compatibility, we have now officially taken the
turn into the c-ares path. We will now officially depend on c-ares for asynch
name resolves.
2004-02-02 16:00:31 +00:00
Daniel Stenberg
e1d541086c
Dirk Manske fixed the ares usage even more. We could get a timeout from ares
...
as well, and when failing and not getting a timeout we now include the
error message ares can provide us with.
2004-02-02 15:53:50 +00:00
Daniel Stenberg
b84eaff1d5
set the 'retry' bit to TRUE when the connection is about to be retried,
...
this allows the HTTP code to *not* return a failure just because no data
has been received from the server
2004-02-02 14:49:54 +00:00
Daniel Stenberg
9eb6fc1fb6
clear the sockerror if no error was returned
2004-02-02 14:49:10 +00:00
Daniel Stenberg
dd1f495c2f
we include errno.h to truly know if we have ECONNRESET or not
2004-02-02 11:59:42 +00:00
Daniel Stenberg
12fa877f00
Timeout slow ares name lookups. This is based on the patch brought by
...
Dirk Manske, but modified by me.
2004-02-02 10:15:22 +00:00
Daniel Stenberg
580a2fe72b
when including ca-bundle.h, don't look in the current dir first, simply use
...
the search path since we want the build-version rather than the one in the
source dir
2004-02-02 10:13:54 +00:00
Daniel Stenberg
14cb9d296c
make sure the connection is closed when it was detected reset!
2004-01-30 12:41:27 +00:00
Daniel Stenberg
df750c236c
Somewhat crude attempt at fixing the test 91 failures. I commit this now
...
so that the automatic testing hosts will test these changes over the weekend.
2004-01-30 12:08:18 +00:00
Daniel Stenberg
6b7f169b10
only do the verifyconnect() clear magic on mpeix
2004-01-30 07:51:51 +00:00
Daniel Stenberg
bfe5568c85
added verifyconnect proto and use it correctly in the waitconnect function
2004-01-29 15:37:21 +00:00
Daniel Stenberg
7e45a1ac53
moved the definitions of IOCTL_3_ARGS to setup.h
2004-01-29 15:35:42 +00:00
Daniel Stenberg
76a51ef4b3
1. changed order of two include files to build fine on MPE/iX
...
2. now reads the socket error before check connect status, also to make us
run fine on MPE/iX
2004-01-29 15:29:47 +00:00
Daniel Stenberg
4d17d6876e
Dan Fandrich's cleanup patch to make pedantic compiler options cause less
...
warnings. Minor edits by me.
2004-01-29 13:56:45 +00:00
Daniel Stenberg
958987c214
Chunked-transfers should have an additional CRLF after the final 0 CRLF
...
sequence.
2004-01-28 17:07:22 +00:00
Daniel Stenberg
dc932f739a
CONNECT response headers are now passed back as "regular" headers
2004-01-27 12:54:22 +00:00
Daniel Stenberg
e096072745
very big transfers now get nicer progress displayed after 9999 megabytes have
...
been transfered!
2004-01-27 12:25:37 +00:00
Daniel Stenberg
2465ff991f
when saving in a cookie jar fails, include the file name in the error message
...
to make it easier to track down
2004-01-26 16:16:44 +00:00
Daniel Stenberg
334c3df09d
Proxy username and password on persistant connections could easily get
...
messed up. Vincent Bronner detected this.
2004-01-23 08:36:03 +00:00
Daniel Stenberg
4120b7b0c0
check the arguments to the socks5 function, as the name and password might
...
be NULL pointers, and if non-NULL if now support zero-length names/passwords
2004-01-23 08:29:56 +00:00
Daniel Stenberg
fac1c13895
fixed the progress meter display for files >32 bit, Gisle Vanem reported
2004-01-23 08:02:12 +00:00
Daniel Stenberg
649caa1953
include curl.h for the typedef
2004-01-23 07:44:02 +00:00
Daniel Stenberg
d8ee927be2
define SIZEOF_CURL_OFF_T if not already defined
2004-01-23 07:41:05 +00:00
Daniel Stenberg
3efb90dd75
re-intended the code curl-style
2004-01-22 14:37:06 +00:00
Daniel Stenberg
ad7e26b140
return curl_off_t instead of long long, to work on more platforms
2004-01-22 14:31:46 +00:00
Daniel Stenberg
87eb26a33d
it has strtoll
2004-01-22 14:25:54 +00:00
Daniel Stenberg
9a48ca69fc
Gisle Vanem's fix, mingw as strtoll
2004-01-22 14:25:19 +00:00
Daniel Stenberg
a259f66fa4
attempt to fix 64bit seeking for Windows, does it work?
2004-01-22 13:11:35 +00:00
Daniel Stenberg
b791e158f0
use curl_off_t instead of off_t!
2004-01-22 12:45:50 +00:00
Daniel Stenberg
e5cd0cc402
use the proper type for formposts, not the deprecated one
2004-01-22 11:54:00 +00:00
Daniel Stenberg
252423a725
added the missing proto for the still unused quit function
2004-01-22 11:53:43 +00:00
Daniel Stenberg
5e2fcc1f74
use the proper timecond defines, not the obsolete ones I've removed! ;-)
...
The initial QUIT-sending code is added, but not yet used due to the issues
previously mentioned on the mailing list.
2004-01-21 08:50:08 +00:00
Daniel Stenberg
e262a7265a
use the proper timecond defines, not the obsolete ones!
2004-01-21 08:47:21 +00:00
Daniel Stenberg
61e3d75def
Gisle Vanem's patch for variables that "might be used uninitialized"
2004-01-16 09:17:04 +00:00
Daniel Stenberg
27b7220f1b
silly me
2004-01-16 07:15:05 +00:00
Daniel Stenberg
a275365c72
Avoid Curl_if2ip() on Interix as well. Fix by Rodney.
2004-01-16 07:09:28 +00:00
Daniel Stenberg
686c70c5b5
use the %dk display for one extra k of progress
2004-01-15 13:08:12 +00:00
Daniel Stenberg
7052daf475
added missing parenthesis
2004-01-15 09:54:30 +00:00
Daniel Stenberg
c5c89862b2
rearranged the connect() call so that there's no interleaved #ifdef, to make
...
it compiler better on amigaos
2004-01-14 09:11:42 +00:00
Daniel Stenberg
2d567af069
fixed the Curl_resolv()'s return code when the looked up host was already
...
in the cache (Vincent Bronner)
2004-01-14 09:05:54 +00:00
Daniel Stenberg
57f67d0241
added a comment about this not being the original getdate.y version, it has
...
been modified
2004-01-13 08:59:53 +00:00
Daniel Stenberg
36f76396ea
Diego Casorran's fixes to allow native AmigaOS builds
2004-01-13 08:35:57 +00:00
Daniel Stenberg
a76235c008
Matt Veenstra updated the Mac OS X framework files
2004-01-13 08:04:05 +00:00
Daniel Stenberg
71b3cc08a6
Brian R Duffy made the makefile work to build SSL-enabled curl with Borland
...
C++.
2004-01-13 08:02:01 +00:00
Daniel Stenberg
3a61c98b65
Peter Sylvester brought code that now allows a callback to modified the URL
...
even when the multi interface is used, and then libcurl will simulate a
"follow location" to that new URL. Test 509 was added to test this feature.
2004-01-12 15:26:32 +00:00
Daniel Stenberg
c8ac7a0d95
Dominick Meglio pointed out FTPS should use default port 990 according to
...
IANA.
2004-01-11 22:56:36 +00:00
Daniel Stenberg
44031f32a1
added one assert and a few comments describing how the auth stuff works
2004-01-09 14:03:06 +00:00
Daniel Stenberg
7beac70644
Dominick Meglio updated the win description since we fixed the gettimeofday
...
name issue
2004-01-09 07:45:47 +00:00
Daniel Stenberg
053f6c85ef
updated year in the copyright string
2004-01-07 09:19:33 +00:00
Daniel Stenberg
292ef5fabb
Dan Fandrich's zlib fix
2004-01-05 22:54:45 +00:00
Daniel Stenberg
9363d94f9b
new files for the large file support number parsing
2004-01-05 22:39:46 +00:00
Daniel Stenberg
b60e0fa97e
David J Meyer's large file support.
2004-01-05 22:29:29 +00:00
Daniel Stenberg
a0edfb90c2
make our private version of gettimeofday() static
2004-01-04 12:10:14 +00:00
Daniel Stenberg
93a8572928
white space and copyright year changes
2004-01-04 12:09:52 +00:00
Daniel Stenberg
591fe66f18
Dominick Meglio's description how to build ares for libcurl on win32
2004-01-04 12:00:11 +00:00
Daniel Stenberg
84b3c3b569
Make setopt() support CURLOPT_IPRESOLVE...
2003-12-19 08:10:09 +00:00
Daniel Stenberg
4223f602ed
djgpp fixes by Gisle Vanem
2003-12-19 08:03:35 +00:00
Daniel Stenberg
8146d46386
Gisle Vanem's minor fixes
2003-12-19 08:03:15 +00:00
Daniel Stenberg
6c6e5522cb
redirect from a bad url such as "www.com?moo=foo" to an absolute path didn't
...
work, as reported by John McGowan
2003-12-18 09:19:10 +00:00
Daniel Stenberg
aff9a817b4
David Byron's fix to make libcurl build fine with both .NET and VC6 version
...
of MSVC
2003-12-18 08:56:20 +00:00
Daniel Stenberg
23a6041698
use the curlassert() instead of custom checks
2003-12-16 14:08:53 +00:00
Daniel Stenberg
3788f25eac
added a library-wide interface for doing dns cache pruning, and no longer
...
make the pruning at each name lookup, only in Curl_done().
2003-12-15 17:33:49 +00:00
Daniel Stenberg
cfe53768dd
if Curl_hash_add() returns NULL, we shall not free the addrinfo field as that
...
is made in the hash function in the case of failure (using the already setup
'dtor' function).
2003-12-15 15:22:10 +00:00
Daniel Stenberg
947e656367
make sure that hash_add() has no allocated resources left in case it
...
returns NULL
2003-12-15 15:21:13 +00:00
Daniel Stenberg
50e7545118
Giuseppe Attardi fixed a really tricky bug
2003-12-15 14:48:37 +00:00
Daniel Stenberg
a025425d06
use the CORRECT file name! ;-)
2003-12-11 07:27:13 +00:00
Daniel Stenberg
8f0abd31c5
Use Curl_transfer() properly. Fixes the bug Gisle Vanem found!
2003-12-10 15:27:59 +00:00
Daniel Stenberg
a13f85fb33
assert that we get a good index to Curl_transfer()
2003-12-10 15:27:27 +00:00
Daniel Stenberg
3b048880ad
we now have a 'curlassert' function to use
2003-12-10 15:27:06 +00:00
Daniel Stenberg
9bc97b2d3c
updated with the new configure option usage
2003-12-10 14:16:56 +00:00
Daniel Stenberg
68c508976f
added the new amiga files to the dist
2003-12-10 13:56:13 +00:00
Daniel Stenberg
4d8a53da2f
Diego Casorran's amiga makefiles
2003-12-10 13:54:57 +00:00
Daniel Stenberg
6c56340e1a
native AmigaOS support by Diego Casorran
2003-12-10 13:53:35 +00:00
Daniel Stenberg
ac114ed45b
do the ares stuff in the configure file
2003-12-10 13:38:51 +00:00
Daniel Stenberg
ee337309cf
better human error message when a FTP response can't be read
2003-12-08 13:06:08 +00:00
Daniel Stenberg
0ab2dff69c
based on Gisle's comment, I removed the use of syslog() and fixed the
...
netdb.h include, then I re-indented some code to use curl-style
2003-12-04 15:21:49 +00:00
Daniel Stenberg
8ccc1148d9
my contentlength adjustment broke the ftp download range stuff, this makes
...
it work again
2003-12-03 08:26:31 +00:00
Daniel Stenberg
06c38330ba
Steve Green fixed Curl_resolv()
2003-12-03 07:55:51 +00:00
Daniel Stenberg
0f4d042d3e
Ignore content-length when chunked transfer-encoding is transfered.
2003-12-03 07:52:00 +00:00
Daniel Stenberg
c79de8d86e
less complicated code for the MSG_NOSIGNAL detection
2003-12-02 22:05:23 +00:00
Daniel Stenberg
1b99d33b59
fix compiler warnings
2003-12-02 13:40:12 +00:00
Daniel Stenberg
800052dc50
use the HAVE_KRB4 define instead of just KRB4
2003-12-02 13:27:29 +00:00
Daniel Stenberg
2c22feced2
fixes from Gisle Vanem to try 'AUTH SSL' before 'AUTH TLS', edited by me
2003-12-02 13:21:53 +00:00
Daniel Stenberg
2cf209d3f7
If HAVE_MSG_NOSIGNAL is set, we use MSG_NOSIGNAL when we call send() and
...
recv() and we no longer attempt to ignore the SIGPIPE signal.
2003-12-02 10:12:44 +00:00
Daniel Stenberg
d1d417664e
Gisle Vanem fixed the check-order for FTPS and FTP.
2003-12-02 06:25:41 +00:00