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
Andrés García'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
Andrés García 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
Günter 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
Günter 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