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