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