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
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