Yang Tse
4d437416da
HAVE_INET_PTON will only be defined when an IPv6 capable working
...
inet_pton function is available.
2008-09-24 19:13:01 +00:00
Yang Tse
267b942383
configure script now checks availability of the inet_ntop() function,
...
and when not crosscompiling verifies if it is IPv6 capable.
HAVE_INET_NTOP will only be defined when an IPv6 capable working
inet_ntop function is available.
2008-09-24 16:43:40 +00:00
Yang Tse
21b523fcd3
Official OpenSSL released versions up to and including 0.9.8i as well as
...
2008-09-24 stable snapshot have a buf_mem_st.length structure member with
'int' data type.
OpenSSL un-released 0.9.9 CVS version has a buf_mem_st.length structure member
with 'size_t' data type since 2007-Oct-09.
These 4 typecasts should silence compiler warnings in all cases.
2008-09-24 13:55:23 +00:00
Yang Tse
4e909ee8b1
ntoa() and inet_ntoa_r() no longer used
2008-09-24 12:22:16 +00:00
Dan Fandrich
515893595d
Make sure not to dereference the wrong UrlState proto union member when
...
switching from one protocol to another in a single request (e.g.
redirecting from HTTP to FTP as in test 1055) by resetting
state.expect100header before every request.
2008-09-24 01:08:01 +00:00
Yang Tse
3800be3898
Remove usage of inet_ntoa and inet_ntoa_r
2008-09-23 19:17:19 +00:00
Yang Tse
c9ad952604
Replace inet_ntoa and inet_ntoa_r with Curl_inet_ntop
2008-09-23 19:16:56 +00:00
Gisle Vanem
2a09ffc648
Avoid 'warning: comparison between signed and unsigned'.
2008-09-23 13:16:36 +00:00
Daniel Stenberg
d369a2b775
- Introducing Jamie Lokier's function for date to epoch conversion used in the
...
date parser function. This makes our function less dependent on system-
provided functions and instead we do all the magic ourselves. We also no
longer depend on the TZ environment variable.
2008-09-23 11:00:01 +00:00
Daniel Stenberg
23e5402bec
- Rob Crittenden brought a patch to "add some locking for thread-safety to NSS
...
implementation".
2008-09-23 10:27:04 +00:00
Daniel Stenberg
391e8afd1f
- Made the SOCKS code use the new Curl_read_plain() function to fix the bug
...
Markus Moeller reported: http://curl.haxx.se/mail/archive-2008-09/0016.html
- recv() errors other than those equal to EAGAIN now cause proper
CURLE_RECV_ERROR to get returned. This made test case 160 fail so I've now
disabled it until we can figure out another way to exercise that logic.
2008-09-22 23:12:00 +00:00
Daniel Stenberg
c4a694862c
- Michael Goffioul filed bug report #2107377 "Problem with mutli + GnuTLS +
...
proxy" (http://curl.haxx.se/bug/view.cgi?id=2107377 ) that showed how a multi
interface using program didn't work when built with GnuTLS and a CONNECT
request was done over a proxy (basically test 502 over a proxy to a HTTPS
site). It turned out the ssl connect function would get called twice which
caused the second call to fail.
2008-09-22 20:42:13 +00:00
Yang Tse
19bc92289d
HAVE_ALARM definition for static config-*.h files
2008-09-19 23:51:16 +00:00
Yang Tse
4e4f6c1ec8
configure script now checks availability of the alarm() function
2008-09-19 18:39:24 +00:00
Dan Fandrich
459e67b2a7
Only define alarmfunc when signals are used
2008-09-19 17:46:59 +00:00
Dan Fandrich
dfa0fd5b33
Don't bother to install a SIGALRM handler unless alarm() is available.
...
Also, leave the existing SIGALRM handler alone if the timeout is too small
to handle.
2008-09-19 00:43:51 +00:00
Yang Tse
f7ef60c13f
fix compiler warning: external definition with no prior declaration
2008-09-18 19:17:28 +00:00
Yang Tse
a6c915aab9
fix compiler warning: external declaration in primary source file
2008-09-18 16:21:09 +00:00
Yang Tse
7d7f63059a
NetWare seems to have writev()
2008-09-16 18:23:16 +00:00
Yang Tse
ee5f13cb6b
NetWare CLIB target has stricmp() and strnicmp()
2008-09-16 01:21:04 +00:00
Dan Fandrich
849318138e
Note that the long long issue is fixed in Symbian OS 9.4
2008-09-15 18:24:23 +00:00
Yang Tse
842de91168
HAVE_STRNCASECMP and HAVE_STRNICMP definitions for WIN32
2008-09-15 14:57:56 +00:00
Yang Tse
4c621bc697
improve detection of:
...
strcasecmp()
strcasestr()
strcmpi()
stricmp()
strlcat()
strncasecmp()
strncmpi()
strnicmp()
2008-09-15 00:32:08 +00:00
Yang Tse
651dad0cc1
fix compiler warning: external declaration in primary source file
2008-09-13 16:37:16 +00:00
Yang Tse
f591ab3ba0
fix compiler warning: defined but not used
2008-09-13 15:59:14 +00:00
Yang Tse
61c0bdb09c
fix compiler warning: external declaration in primary source file
2008-09-13 03:49:33 +00:00
Yang Tse
89367d47a8
Disable tracking of fdopen() calls in the low-level memory leak tracking
...
code when fdopen() is not available, to avoid compiler error.
2008-09-13 03:45:03 +00:00
Yang Tse
7fdfd938e0
remove dead code portion inoperative long time ago
2008-09-13 01:54:45 +00:00
Yang Tse
adb974960d
fix compiler warning: enumerated type mixed with another type
2008-09-13 01:12:07 +00:00
Yang Tse
aac739ccd2
ANSI C compatibility adjustment
2008-09-12 11:18:17 +00:00
Yang Tse
c3d1b07c45
ensure that errno is not modified inside Curl_strerror()
2008-09-12 10:51:57 +00:00
Yang Tse
2bcd13aaee
ANSI C compatibility fix
2008-09-12 03:24:27 +00:00
Dan Fandrich
6cea51585f
Checked in some code improvements and minor fixes that I discovered in the
...
FreeBSD ports system.
2008-09-10 20:05:45 +00:00
Yang Tse
a834b98232
fix compiler warning
2008-09-10 13:39:35 +00:00
Dan Fandrich
152cf6325d
Checked in some grammatical and minor other fixes in the documentation and
...
examples that I found in the FreeBSD ports system.
2008-09-10 07:11:45 +00:00
Dan Fandrich
c98ab69cc7
Factored out Curl_isalnum
2008-09-09 21:15:50 +00:00
Yang Tse
2ef72f7abb
fix compiler warning
2008-09-08 19:34:58 +00:00
Daniel Stenberg
2816902f0e
Dmitry Kurochkin fixed pipelining over proxy using the multi interface
2008-09-08 12:15:09 +00:00
Daniel Stenberg
f72a26d340
- Stefan Krause pointed out that libcurl would wrongly send away cookies to
...
sites in cases where the cookie clearly has a very old expiry date. The
condition was simply that libcurl's date parser would fail to convert the
date and it would then count as a (timed-based) match. Starting now, a
missed date due to an unsupported date format or date range will now cause
the cookie to not match.
2008-09-08 11:36:19 +00:00
Daniel Stenberg
387521bb6d
comment < 80 columns
2008-09-08 07:39:05 +00:00
Yang Tse
59e378f48f
remove unnecessary typecasting of malloc()
2008-09-06 05:29:05 +00:00
Yang Tse
a622fd90b4
remove unnecessary typecasting of calloc()
2008-09-06 04:47:14 +00:00
Yang Tse
861b647e7b
remove unnecessary typecasting of realloc()
2008-09-06 04:28:43 +00:00
Dan Fandrich
70e57dad88
Only compile Curl_ssl_free_certinfo when SSL is enabled
2008-09-05 18:35:29 +00:00
Dan Fandrich
91ff938035
Improved the logic the decides whether to use HTTP 1.1 features or not in a
...
request.
Detect cases where an upload must be sent chunked and the server supports
only HTTP 1.0 and return CURLE_UPLOAD_FAILED.
2008-09-05 17:58:53 +00:00
Dan Fandrich
3acd1146f9
Use realloc when paused in Curl_client_write
2008-09-05 17:21:54 +00:00
Daniel Stenberg
18110b519c
- Martin Drasar provided the CURLOPT_POSTREDIR patch. It renames
...
CURLOPT_POST301 (but adds a define for backwards compatibility for you who
don't define CURL_NO_OLDIES). This option allows you to now also change the
libcurl behavior for a HTTP response 302 after a POST to not use GET in the
subsequent request (when CURLOPT_FOLLOWLOCATION is enabled). I edited the
patch somewhat before commit. The curl tool got a matching --post302
option. Test case 1076 was added to verify this.
2008-09-05 16:13:20 +00:00
Daniel Stenberg
4c9768565e
- Introducing CURLOPT_CERTINFO and the corresponding CURLINFO_CERTINFO. By
...
enabling this feature with CURLOPT_CERTINFO for a request using SSL (HTTPS
or FTPS), libcurl will gather lots of server certificate info and that info
can then get extracted by a client after the request has completed with
curl_easy_getinfo()'s CURLINFO_CERTINFO option. Linus Nielsen Feltzing
helped me test and smoothen out this feature.
Unfortunately, this feature currently only works with libcurl built to use
OpenSSL.
This feature was sponsored by networking4all.com - thanks!
2008-09-05 14:29:21 +00:00
Daniel Stenberg
873e734c39
- Dmitriy Sergeyev pointed out that curl_easy_pause() didn't unpause properly
...
during certain conditions. I also changed this code to use realloc() based
on Daniel Fandrich's suggestion.
2008-09-05 09:37:37 +00:00
Yang Tse
62519bfe05
somewhat protect Mac OS X users from using Mac OS 9 config file
2008-09-05 01:27:24 +00:00
Gunter Knauf
9c36a5fd06
fixed largefile feature for MingW32 non-configure builds.
2008-09-04 22:04:53 +00:00
Gunter Knauf
4558c8f37a
enabled largefile feature for LIBC builds.
2008-09-04 22:01:19 +00:00
Dan Fandrich
bb67388bbe
Made some variables const
2008-09-04 19:43:35 +00:00
Yang Tse
3dcd2b82c4
fix print formatting string directives
2008-09-04 18:59:05 +00:00
Dan Fandrich
29ec219b82
Fixed an out of memory problem that caused torture test failures in tests
...
706 and 707.
2008-09-02 23:12:00 +00:00
Dan Fandrich
0994d7811f
Removed some redundant type casts
2008-09-02 18:36:39 +00:00
Dan Fandrich
934708d950
Made some variables const which eliminated some casts
2008-09-02 17:41:20 +00:00
Daniel Stenberg
72ea805298
Add README.curl_off_t to the release archive
2008-09-01 14:25:37 +00:00
Yang Tse
79ffbf7fe1
MSVC adjustment
2008-08-31 12:12:35 +00:00
Daniel Stenberg
c67a99ff27
- When libcurl was doing a HTTP POST and the server would respond with
...
"Connection: close" and actually close the connection after the
response-body, libcurl could still have outstanding data to send and it
would not properly notice this and stop sending. This caused weirdness and
sad faces. http://curl.haxx.se/bug/view.cgi?id=2080222
Note that there are still reasons to consider libcurl's behavior when
getting a >= 400 response code while sending data, as Craig Perras' note
"http upload: how to stop on error" specifies:
http://curl.haxx.se/mail/archive-2008-08/0138.html
2008-08-29 10:47:59 +00:00
Yang Tse
9b7b2b347f
When not using large file support WIN32's lseek offset is a 'long'.
2008-08-28 22:41:35 +00:00
Yang Tse
004dde18a7
Adjust generation of MSVC project files
2008-08-28 13:53:44 +00:00
Daniel Stenberg
e138ae5ec9
- I'm abandoning the system with the web site mirrors (but keeping download
...
files bing mirrored) and thus I've changed the URL in the cookiejar header
to no longer use curlm.haxx.se but instead use the main site curl.haxx.se
2008-08-28 11:35:54 +00:00
Daniel Stenberg
19d0a7495e
minor code indent fixes
2008-08-28 07:41:15 +00:00
Daniel Stenberg
099b62f124
- Dengminwen reported that libcurl would lock a (cookie) share twice (without
...
an unlock in between) for a certain case and that in fact works when using
regular windows mutexes but not with pthreads'! Locks should of course not
get locked again so this is now fixed.
http://curl.haxx.se/mail/lib-2008-08/0422.html
2008-08-28 07:37:29 +00:00
Dan Fandrich
8ce78ca488
Fixed test case 1065 by changing the handling of CURLOPT_UPLOAD to set
...
the HTTP method to GET (or HEAD) when given a value of 0.
2008-08-28 06:28:07 +00:00
Yang Tse
fc9610919c
This file must be kept in CVS with DOS style CR+LF line endings.
2008-08-28 03:31:54 +00:00
Yang Tse
b150e6866d
DLL's resource file specification for VC6 generated .dsp file
2008-08-28 01:22:26 +00:00
Yang Tse
2f475fa9ea
Add /D "CURL_STATICLIB" to LIB's BASE configuration
2008-08-27 23:46:33 +00:00
Yang Tse
ecff50c2b4
VC6 generated .dsp file now supports 4 configurations:
...
libcurl - Win32 DLL Debug
libcurl - Win32 DLL Release
libcurl - Win32 LIB Debug
libcurl - Win32 LIB Release
2008-08-27 23:31:58 +00:00
Daniel Stenberg
1056202b48
spell! (most of it fixed by Tor Arntsen)
2008-08-27 06:10:47 +00:00
Dan Fandrich
709de3d621
Fix large file support for Symbian OS on the emulator.
2008-08-27 01:48:33 +00:00
Yang Tse
f9894f4ebc
Don't abort configuration if recvfrom() is not available.
2008-08-27 00:25:02 +00:00
Dan Fandrich
4b01dfe369
Fixed out of memory problems that caused torture test failures in tests
...
1021 and 1067.
2008-08-26 21:28:57 +00:00
Yang Tse
9258928c2d
minor language adjustment
2008-08-26 13:35:06 +00:00
Daniel Stenberg
132cd3aa2c
spell out some benefits of this new approach of doing curl_off_t
2008-08-26 12:57:29 +00:00
Yang Tse
2fdd24c724
Fix default SIZEOF_OFF_T definition logic
2008-08-26 10:48:52 +00:00
Patrick Monnerat
852a02daff
Fix _LARGE_FILES definition (thanks to Yang Tse for signaling the bug)
2008-08-26 09:26:06 +00:00
Yang Tse
3e2487493e
Use SIZEOF_OFF_T definition from config file
2008-08-26 01:40:19 +00:00
Yang Tse
ec28988bfa
leftover
2008-08-25 03:50:51 +00:00
Yang Tse
f164260eee
For congruency sake with the naming of other CURL_XXXXXX_CURL_OFF_T macros,
...
the name of the curl_off_t data type used now becomes CURL_TYPEOF_CURL_OFF_T
CURL_OFF_T -> CURL_TYPEOF_CURL_OFF_T
2008-08-25 01:18:49 +00:00
Yang Tse
c9f2c54c49
Remove debug tracing and nearly all changes introduced since revision 1.72
...
The effective result of this commit is revision 1.72 plus two changed lines. These
can be viewed in http://cool.haxx.se/cvs.cgi/curl/lib/mprintf.c.diff?r1=1.72&r2=1.77
2008-08-24 23:21:46 +00:00
Daniel Stenberg
8dabd34432
Introduced the configure option --enable-soname-bump that lets a user enforce
...
an SONAME bump.
2008-08-24 21:26:42 +00:00
Daniel Stenberg
a104a365e3
Added firefox-db2pem.sh to the release archive
2008-08-24 20:42:51 +00:00
Yang Tse
cbc04a7d40
Debug trace curl_mprintf() on x86_64 and ia64 systems.
2008-08-24 16:01:15 +00:00
Yang Tse
bc69e46ad1
x86_64 fixes
2008-08-24 10:40:38 +00:00
Yang Tse
13f035b905
x86_64 fixes
2008-08-24 03:59:43 +00:00
Yang Tse
79cbe50894
Test if type casting a 'signed int' to a 'signed long long' fails to do sign extension on x86_64.
2008-08-24 00:15:59 +00:00
Daniel Stenberg
1c04aa54a7
- Running 'make ca-firefox' in the root build dir will now run the new
...
firefox-db2pem.sh conversion script that converts a local Firefox db of ca
certs into PEM format, suitable for use with a OpenSSL or GnuTLS built
libcurl.
2008-08-23 22:02:41 +00:00
Gunter Knauf
b718283327
removed obsolete slash in URL.
2008-08-23 21:31:09 +00:00
Daniel Stenberg
f46d47239f
revert accidental commit
2008-08-23 12:14:05 +00:00
Daniel Stenberg
13dc82b9d4
- Constantine Sapuntzakis fixed a bug when doing proxy CONNECT with the multi
...
interface, and the proxy would send Connection: close during the
authentication phase. http://curl.haxx.se/bug/view.cgi?id=2069047
2008-08-23 12:11:38 +00:00
Daniel Stenberg
a243dd4587
mention the no soname bump too
2008-08-23 11:37:42 +00:00
Daniel Stenberg
9d5d6c557b
my first take at documenting the curl_off_t situation when doing an upgrade
...
< 7.19.0 to >= 7.19.x
2008-08-23 11:34:42 +00:00
Yang Tse
70b1cd798f
explicit value assignment for comparison result
2008-08-23 02:35:16 +00:00
Yang Tse
578f42d588
typecast constant in comparison
2008-08-23 02:04:55 +00:00
Yang Tse
fcc8700218
Reinstate struct_stat definition that got lost in previous commit.
2008-08-22 19:01:00 +00:00
Yang Tse
9849c6b847
Adjustments to better select/differentiate when large/small file
...
support is provided using WIN32 functions directly.
2008-08-22 18:09:03 +00:00
Yang Tse
9bb5da968c
Improved curl_m*printf() integral data type size and signedness handling
2008-08-22 11:11:33 +00:00
Yang Tse
f07c3171e3
cleanup the BOOL usage
2008-08-22 06:53:01 +00:00