platform/upstream/curl.git
13 years agotests: verify OPEN/CLOSESOCKETFUNCTION
Yang Tse [Thu, 19 May 2011 20:28:28 +0000 (22:28 +0200)]
tests: verify OPEN/CLOSESOCKETFUNCTION

Test 585: Fix opensocket return type, and avoid function name clash.

13 years agoversion: linkage fix
Yang Tse [Thu, 19 May 2011 09:48:32 +0000 (11:48 +0200)]
version: linkage fix

Fix linkage on c-ares enabled Windows static builds

13 years agocurl_easy_setopt.3: document CLOSESOCKET* options
Daniel Stenberg [Wed, 18 May 2011 20:30:10 +0000 (22:30 +0200)]
curl_easy_setopt.3: document CLOSESOCKET* options

13 years agotests: verify OPEN/CLOSESOCKETFUNCTION
Daniel Stenberg [Wed, 18 May 2011 19:48:14 +0000 (21:48 +0200)]
tests: verify OPEN/CLOSESOCKETFUNCTION

Test 585 and 586 were added. Using a modified lib500.c

13 years agosymbols-in-versions: add CLOSESOCKET*
Daniel Stenberg [Mon, 16 May 2011 21:53:38 +0000 (23:53 +0200)]
symbols-in-versions: add CLOSESOCKET*

13 years agoCLOSESOCKETFUNCTION: use the callback
Daniel Stenberg [Mon, 16 May 2011 21:52:15 +0000 (23:52 +0200)]
CLOSESOCKETFUNCTION: use the callback

Fix the return type of the callback to match close() and make use of it.

13 years agoCLOSESOCKETFUNCTION: added
Daniel Stenberg [Mon, 16 May 2011 21:46:43 +0000 (23:46 +0200)]
CLOSESOCKETFUNCTION: added

Introduced the initial setup to allow closesocket callbacks by making
sure sclose() is only ever called from one place in the libcurl source
and still run all test cases fine.

13 years agoGnuTLS handshake: fix timeout
Daniel Stenberg [Wed, 18 May 2011 18:48:42 +0000 (20:48 +0200)]
GnuTLS handshake: fix timeout

Commit cbf4961bf3e garbled the timeout handling while doing SSL
handshaking (in an attempt at fixing another bug). This puts sanity
back.

Bug: http://curl.haxx.se/mail/lib-2011-05/0167.html
Reported by: Ethan Glasser Camp

13 years agochecksrc: trailing whitespace detection fix
Daniel Stenberg [Mon, 16 May 2011 13:21:04 +0000 (15:21 +0200)]
checksrc: trailing whitespace detection fix

13 years agonegotiate sspi: fix sequential requests
Marcel Roelofs [Mon, 16 May 2011 09:19:03 +0000 (11:19 +0200)]
negotiate sspi: fix sequential requests

13 years agotests: added HTTP If-Modified-Since tests
Daniel Stenberg [Fri, 13 May 2011 06:55:15 +0000 (08:55 +0200)]
tests: added HTTP If-Modified-Since tests

Added test 1126 and 1127 to verify curl's behaviour when If-Modified-Since
is used and a 200 is returned.

The list of test cases in Makefile.am is now sorted numerically.

13 years agoinclude: cleanup
Daniel Stenberg [Tue, 3 May 2011 20:39:38 +0000 (22:39 +0200)]
include: cleanup

Made the public headers checksrc compliant

Removed types.h (it's been unused since April 2004)

Made the root makefile do make in include by default as well, so that
TAGS and the checksrc will work better.

13 years agoFixed compilation when RTSP is disabled
Dan Fandrich [Fri, 6 May 2011 20:48:59 +0000 (13:48 -0700)]
Fixed compilation when RTSP is disabled

13 years agoFixed LDAP after RTSP readwrite change
Dan Fandrich [Fri, 6 May 2011 20:48:24 +0000 (13:48 -0700)]
Fixed LDAP after RTSP readwrite change

13 years agoRELEASE-NOTES: synced with 32001ac4149b206
Daniel Stenberg [Fri, 6 May 2011 09:26:37 +0000 (11:26 +0200)]
RELEASE-NOTES: synced with 32001ac4149b206

13 years agoset_userpass: convert from protocol-specific to generic
Daniel Stenberg [Thu, 5 May 2011 15:07:21 +0000 (17:07 +0200)]
set_userpass: convert from protocol-specific to generic

The protocol handler's flags field now can set that the protocol
requires a password, so that the set_userpass function doesn't have to
have the specific knowledge of which protocols that do.

13 years agoRTSP: cleanups
Daniel Stenberg [Thu, 5 May 2011 14:53:05 +0000 (16:53 +0200)]
RTSP: cleanups

Made several functions static

Made one function defined to nothing when RTSP is disabled to avoid
the #ifdefs in code.

Removed explicit rtsp.h includes

13 years agoRTSP: convert protocol-specific checks to generic
Daniel Stenberg [Thu, 5 May 2011 14:27:03 +0000 (16:27 +0200)]
RTSP: convert protocol-specific checks to generic

Add a 'readwrite' function to the protocol handler struct and use that
for the extra readwrite functionality RTSP needs.

13 years agoSSL: check for SSL, not specific protocols
Daniel Stenberg [Thu, 5 May 2011 13:49:43 +0000 (15:49 +0200)]
SSL: check for SSL, not specific protocols

Code cleanup to check less for protocols and more for the specific
relevant feature. Like if SSL is required.

13 years agohttp_perhapsrewind: remove HTTP check
Daniel Stenberg [Thu, 5 May 2011 13:38:01 +0000 (15:38 +0200)]
http_perhapsrewind: remove HTTP check

No need to check for HTTP as this is now a HTTP-specific function

13 years agohttp_perhapsrewind:
Daniel Stenberg [Thu, 5 May 2011 13:18:31 +0000 (15:18 +0200)]
http_perhapsrewind:

make it static, remove Curl_ prefix

13 years agoremove FILE protocol-specific checks
Daniel Stenberg [Thu, 5 May 2011 13:14:19 +0000 (15:14 +0200)]
remove FILE protocol-specific checks

Also, convert the BANPROXY flag into NONETWORK for the protocols
(file:// only atm) that don't work over networks.

13 years agocurl.1: --socks* options no longer needed
Daniel Stenberg [Thu, 5 May 2011 09:54:58 +0000 (11:54 +0200)]
curl.1: --socks* options no longer needed

As we now can specify all the socks proxy types with the regular --proxy
option using protocol prefix.

13 years agosocks proxy: allow socks5h:// prefix too
Daniel Stenberg [Thu, 5 May 2011 09:47:55 +0000 (11:47 +0200)]
socks proxy: allow socks5h:// prefix too

Using 'socks5h' as proxy protocol will make it a
CURLPROXY_SOCKS5_HOSTNAME proxy which is SOCKS5 and asking the proxy to
resolve host names. I found no "standard" protocol name for this.

13 years agocurl.1: minor edit of --ftp-ssl*
Daniel Stenberg [Thu, 5 May 2011 09:28:03 +0000 (11:28 +0200)]
curl.1: minor edit of --ftp-ssl*

13 years agocurl.1: use GNU style and sort options
Jari Aalto [Thu, 5 May 2011 09:26:12 +0000 (11:26 +0200)]
curl.1: use GNU style and sort options

Follow style of GNU layout (cp, mv ...) where options are separated with
comma: -o, --option

Order item alphabetically (by length also): -o, -O, --option

Follow style of GNU layout by moving help related options to the end:
--help, -M, --version

13 years agoCorrected comments
Daniel Stenberg [Wed, 4 May 2011 22:02:39 +0000 (00:02 +0200)]
Corrected comments

closepolicy has been deprecated and unused for years

13 years agoConnectionStore: remove unused return code
Daniel Stenberg [Wed, 4 May 2011 21:56:18 +0000 (23:56 +0200)]
ConnectionStore: remove unused return code

13 years agoindent correctly
Daniel Stenberg [Wed, 4 May 2011 21:45:30 +0000 (23:45 +0200)]
indent correctly

13 years agocurl_easy_getinfo.3: clarify some timing info
Daniel Stenberg [Tue, 3 May 2011 20:47:56 +0000 (22:47 +0200)]
curl_easy_getinfo.3: clarify some timing info

13 years agocurl_easy_setopt.3: clarify the SSH KEYFILE options usage
Daniel Stenberg [Mon, 2 May 2011 21:31:38 +0000 (23:31 +0200)]
curl_easy_setopt.3: clarify the SSH KEYFILE options usage

The internal defaults are important info

13 years agodocs: mention the protocol:// support in proxy strings
Daniel Stenberg [Mon, 2 May 2011 20:15:14 +0000 (22:15 +0200)]
docs: mention the protocol:// support in proxy strings

13 years ago--data-ascii: add mention
Daniel Stenberg [Mon, 2 May 2011 12:40:17 +0000 (14:40 +0200)]
--data-ascii: add mention

As it is a separate option it should have a .IP title

13 years agourl encode docs: mention '-', '.', '_' and '~'
Daniel Stenberg [Mon, 2 May 2011 09:14:30 +0000 (11:14 +0200)]
url encode docs: mention '-', '.', '_' and '~'

Clarify that the '-', '.', '_' or '~' letters are also not escaped since
they shouldn't according to RFC3986 section 2.3.

This is how this function has behaved since sep 2010, commit
5df13c31735fa0.

13 years agoSSH: set non-blocking earlier
Daniel Stenberg [Sun, 1 May 2011 21:01:31 +0000 (23:01 +0200)]
SSH: set non-blocking earlier

Introduce an INIT state for the SSH state machine and set libssh2
non-blocking in that so that it is set properly before
libssh2_session_startup() is called.

Bug: http://curl.haxx.se/mail/archive-2011-05/0001.html

13 years agocurl_formfree.3: mention argument may be NULL
Daniel Stenberg [Sat, 30 Apr 2011 16:49:35 +0000 (18:49 +0200)]
curl_formfree.3: mention argument may be NULL

As the code already checks for it we can just as well make it official!

13 years agoConnectionExists: avoid NULL dereference
Daniel Stenberg [Fri, 29 Apr 2011 14:46:49 +0000 (16:46 +0200)]
ConnectionExists: avoid NULL dereference

When checking for connections that are bound to a particular device we
must make sure we don't compare with a NULL pointer.

13 years agoresolver_error: remove bad semicolon
Daniel Stenberg [Fri, 29 Apr 2011 14:33:45 +0000 (16:33 +0200)]
resolver_error: remove bad semicolon

13 years agoRELEASE-NOTES: synced with c4bc1d473f324
Daniel Stenberg [Thu, 28 Apr 2011 20:23:11 +0000 (22:23 +0200)]
RELEASE-NOTES: synced with c4bc1d473f324

13 years agoanyauthput.c: stdint.h must not be included unconditionally
Daniel Stenberg [Thu, 28 Apr 2011 20:14:05 +0000 (22:14 +0200)]
anyauthput.c: stdint.h must not be included unconditionally

As it is already included by curlbuild.h if it exists on the platform it
was included here superfluously anyway.

Reported by: Dagobert Michelsen
Bug: http://curl.haxx.se/bug/view.cgi?id=3294509

13 years agogai_strerror: provide private implementation
Daniel Stenberg [Wed, 27 Apr 2011 11:20:27 +0000 (13:20 +0200)]
gai_strerror: provide private implementation

There are systems (like NetWare) without its own gai_strerror()
function.

13 years agotreaded-resolver: better error messages
Daniel Stenberg [Wed, 27 Apr 2011 11:07:49 +0000 (13:07 +0200)]
treaded-resolver: better error messages

Now use gai_strerror() to get proper error messages when getaddrinfo()
has failed. Detect the function in configure.

Code based on work and suggestions by Jeff Pohlmeyer and Guenter Knauf

13 years agoproxy: allow socks:// prefix in proxy string
Daniel Stenberg [Wed, 27 Apr 2011 12:44:00 +0000 (14:44 +0200)]
proxy: allow socks:// prefix in proxy string

Inspired by a patch from OB.Conseil. Added test case 708 to verify.

13 years agoCMake: improve library search, implement install.
Zmey Petroff [Wed, 27 Apr 2011 20:05:07 +0000 (00:05 +0400)]
CMake: improve library search, implement install.

Improved library search by check_function_exists_concat() macro:
it does not revert the list of libraries any more.

Improved OpenSSL library search: first find zlib, then search for
openssl libraries that may depend on zlib.

For Unix: openssl libraries can now be detected in nonstandard
locations. Supply CMAKE_LIBRARY_PATH to CMake on command line.

Added installation capability (very basic one yet).

13 years agomulti-socks: fix connect to proxy
Daniel Stenberg [Thu, 28 Apr 2011 07:39:33 +0000 (09:39 +0200)]
multi-socks: fix connect to proxy

When connecting to a socks or similar proxy we do the proxy handshake at
once when we know the TCP connect is completed and we only consider the
"connection" complete after the proxy handshake. This fixes test 564
which is now no longer considered disabled.

Reported by: Dmitri Shubin
Bug: http://curl.haxx.se/mail/lib-2011-04/0127.html

13 years agocleanup: remove old unused debug code
Daniel Stenberg [Thu, 28 Apr 2011 07:21:20 +0000 (09:21 +0200)]
cleanup: remove old unused debug code

13 years agoMake checksrc.pl work on out-of-tree builds
Dan Fandrich [Wed, 27 Apr 2011 19:42:15 +0000 (12:42 -0700)]
Make checksrc.pl work on out-of-tree builds

Source files given with absolute paths do not have the
-D directory specifier prepended.

13 years agomake: add checksrc.pl to dist
Daniel Stenberg [Wed, 27 Apr 2011 09:42:02 +0000 (11:42 +0200)]
make: add checksrc.pl to dist

13 years agomake: add 'checksrc' as target to check code style
Daniel Stenberg [Wed, 27 Apr 2011 08:23:27 +0000 (10:23 +0200)]
make: add 'checksrc' as target to check code style

The make target checksrc now works in the root makefile and in both the
src and lib directories.

It is also run automatically on "all" if configure --enable-debug was
used.

13 years agochecksrc: whitespace and code style cleanup
Daniel Stenberg [Mon, 25 Apr 2011 20:44:39 +0000 (22:44 +0200)]
checksrc: whitespace and code style cleanup

Make everything adhere to the standards upheld by checksrc.pl and now
run checksrc from the makefile on debug builds.

13 years agochecksrc: add -W to allow a file to be whitelisted
Daniel Stenberg [Mon, 25 Apr 2011 20:43:02 +0000 (22:43 +0200)]
checksrc: add -W to allow a file to be whitelisted

Useful when a known file just doesn't comply and there's no intention to
make it do so.

13 years agowhitespace cleanup: no space first in conditionals
Daniel Stenberg [Fri, 22 Apr 2011 21:01:30 +0000 (23:01 +0200)]
whitespace cleanup: no space first in conditionals

"if(a)" is our style, not "if( a )"

13 years agolib/make: run checksrc.pl once for all files
Daniel Stenberg [Fri, 22 Apr 2011 21:00:31 +0000 (23:00 +0200)]
lib/make: run checksrc.pl once for all files

Since it now supports multiple files this will be faster and will show
problems for more file than one at a time - more convenient.

13 years agochecksrc: scan many files, more checks
Daniel Stenberg [Fri, 22 Apr 2011 20:58:17 +0000 (22:58 +0200)]
checksrc: scan many files, more checks

It now scans multiple files and outputs an error+warning count summary
at the end in case at least one was detected.

-D can be used to specify in which dir the files are located

The script now scans for conditions that starts with a space for
if/while/for lines.

13 years agoMakefile: run checksrc if debug enabled
Daniel Stenberg [Wed, 20 Apr 2011 20:44:38 +0000 (22:44 +0200)]
Makefile: run checksrc if debug enabled

And make the build fail if a warning or error was detected

13 years agochecksrc: exit error code if warnings or errors
Daniel Stenberg [Wed, 20 Apr 2011 20:44:08 +0000 (22:44 +0200)]
checksrc: exit error code if warnings or errors

13 years agoSSH: move knownhost logic to separate function
Daniel Stenberg [Wed, 20 Apr 2011 20:43:41 +0000 (22:43 +0200)]
SSH: move knownhost logic to separate function

13 years agosource cleanup: unify look, style and indent levels
Daniel Stenberg [Wed, 20 Apr 2011 13:17:42 +0000 (15:17 +0200)]
source cleanup: unify look, style and indent levels

By the use of a the new lib/checksrc.pl script that checks that our
basic source style rules are followed.

13 years agoWindows native IDN fixes.
Guenter Knauf [Wed, 27 Apr 2011 01:45:18 +0000 (03:45 +0200)]
Windows native IDN fixes.

For now provide prototypes instead of including the
non-standard normalisation.h which is only available in the
"Internationalized Domain Names Mitigation APIs" download.

13 years agoFixed compiler warning in Windows SSPI case
Dan Fandrich [Tue, 26 Apr 2011 04:58:37 +0000 (21:58 -0700)]
Fixed compiler warning in Windows SSPI case

13 years agoFixed compilation when the synchronous resolver is used
Dan Fandrich [Tue, 26 Apr 2011 02:01:40 +0000 (19:01 -0700)]
Fixed compilation when the synchronous resolver is used

13 years agoAdded new resolver sources to Symbian and VC6 build files
Dan Fandrich [Tue, 26 Apr 2011 01:07:32 +0000 (18:07 -0700)]
Added new resolver sources to Symbian and VC6 build files

13 years agohostip: comment fixed to state current situation
Daniel Stenberg [Mon, 25 Apr 2011 17:50:56 +0000 (19:50 +0200)]
hostip: comment fixed to state current situation

13 years agoasync resolvers: further cleanups
Daniel Stenberg [Sun, 30 Jan 2011 23:10:35 +0000 (00:10 +0100)]
async resolvers: further cleanups

asyn-ares.c and asyn-thread.c are two separate backends that implement
the same (internal) async resolver API for libcurl to use. Backend is
specified at build time.

The internal resolver API is defined in asyn.h for asynch resolvers.

13 years agoasynch resolvers: cleanup
Daniel Stenberg [Sun, 30 Jan 2011 00:00:52 +0000 (01:00 +0100)]
asynch resolvers: cleanup

Fixed indents, coding conventions and white space edits.

Modified the c-ares completion callback function to again NOT read the
conn data when the ares handle is being taken down as then it may have
been freed already.

13 years agoasynch resolvers: unified
Vsevolod Novikov [Sat, 29 Jan 2011 19:12:10 +0000 (20:12 +0100)]
asynch resolvers: unified

Introducing an internal API for handling of different async resolver
backends.

13 years agoEnabled OpenWatcom native Windows IDN build.
Guenter Knauf [Sun, 24 Apr 2011 16:58:07 +0000 (18:58 +0200)]
Enabled OpenWatcom native Windows IDN build.

For now we directly import the Idn* symbols with the linker;
an upcoming release of OWC will have these added to the import
lib normaliz.lib, and prototypes are added to winnnls.h.

13 years agoNTLM: work with unicode
Daniel Stenberg [Wed, 20 Apr 2011 14:08:28 +0000 (16:08 +0200)]
NTLM: work with unicode

Rewritten code from a patch brought by Matteo Rocco.

13 years agobump version: work towards 7.21.7
Daniel Stenberg [Fri, 22 Apr 2011 20:02:55 +0000 (22:02 +0200)]
bump version: work towards 7.21.7

13 years agoTHANKS: contributors from 7.21.6
Daniel Stenberg [Fri, 22 Apr 2011 20:02:33 +0000 (22:02 +0200)]
THANKS: contributors from 7.21.6

13 years agoRELEASE-NOTES: two more contributors
Daniel Stenberg [Fri, 22 Apr 2011 17:17:26 +0000 (19:17 +0200)]
RELEASE-NOTES: two more contributors

13 years agoFixed test 1023 when using daily snapshots
Dan Fandrich [Thu, 21 Apr 2011 21:47:35 +0000 (14:47 -0700)]
Fixed test 1023 when using daily snapshots

13 years agoInclude unistd.h to declare close()
Dan Fandrich [Thu, 21 Apr 2011 21:47:07 +0000 (14:47 -0700)]
Include unistd.h to declare close()

13 years agoIn lib/, change 'wanna' to 'want to'.
Fabian Keil [Tue, 19 Apr 2011 13:55:37 +0000 (15:55 +0200)]
In lib/, change 'wanna' to 'want to'.

Found with codespell.

13 years agoFix spelling errors in buildconf
Fabian Keil [Tue, 19 Apr 2011 14:08:24 +0000 (16:08 +0200)]
Fix spelling errors in buildconf

Found with codespell.

13 years agoFix spelling errors in src/
Fabian Keil [Tue, 19 Apr 2011 14:06:47 +0000 (16:06 +0200)]
Fix spelling errors in src/

Found with codespell.

13 years agoFix spelling errors in include/
Fabian Keil [Tue, 19 Apr 2011 14:05:17 +0000 (16:05 +0200)]
Fix spelling errors in include/

13 years agoFix a couple of spelling errors in lib/
Fabian Keil [Tue, 19 Apr 2011 13:54:13 +0000 (15:54 +0200)]
Fix a couple of spelling errors in lib/

Found with codespell.

13 years agotransfer.c: Fixed indentation in readwrite_data.
Julien Chaffraix [Thu, 14 Apr 2011 14:15:12 +0000 (07:15 -0700)]
transfer.c: Fixed indentation in readwrite_data.

13 years agoFixed closing test tag
Dan Fandrich [Wed, 20 Apr 2011 23:51:44 +0000 (16:51 -0700)]
Fixed closing test tag

13 years agoRELEASE-NOTES: synced with 3242abd87a1262
Daniel Stenberg [Wed, 20 Apr 2011 21:59:36 +0000 (23:59 +0200)]
RELEASE-NOTES: synced with 3242abd87a1262

13 years agoSFTP: close file before postquote
Daniel Stenberg [Wed, 20 Apr 2011 21:37:29 +0000 (23:37 +0200)]
SFTP: close file before postquote

Make sure that files are closed before the post quote commands run as if
they operate on the just transferred file they could otherwise easily
fail.

Patch by: Rajesh Naganathan (edited)

13 years agoFixed test 1022 when using daily snapshots
Dan Fandrich [Wed, 20 Apr 2011 21:11:12 +0000 (14:11 -0700)]
Fixed test 1022 when using daily snapshots

13 years agoCurl_http_connect: detect HTTPS properly after CONNECT
Daniel Stenberg [Wed, 20 Apr 2011 20:50:04 +0000 (22:50 +0200)]
Curl_http_connect: detect HTTPS properly after CONNECT

libcurl failed to check the correct struct for HTTPS after CONNECT was
issued to the proxy, so it didn't do the TLS handshake and subsequently
failed the connection. A regression released in 7.21.5 (introduced
around commit 8831000bc07de).

Bug: http://curl.haxx.se/mail/lib-2011-04/0134.html
Reported by: Josue Andrade Gomes

13 years agocurl_easy_setopt.3: CURLOPT_PROXYTYPE clarification
Daniel Stenberg [Wed, 20 Apr 2011 13:42:23 +0000 (15:42 +0200)]
curl_easy_setopt.3: CURLOPT_PROXYTYPE clarification

When set to a HTTP 1.0 proxy, that only affects the CONNECT request and
not the regular HTTP request.

13 years agoCURL_DOES_CONVERSIONS: fixes
Gisle Vanem [Wed, 20 Apr 2011 13:23:57 +0000 (15:23 +0200)]
CURL_DOES_CONVERSIONS: fixes

Made it compile and work again after the code move.

13 years agoCURL_DOES_CONVERSIONS: cleanup
Daniel Stenberg [Tue, 19 Apr 2011 22:48:20 +0000 (00:48 +0200)]
CURL_DOES_CONVERSIONS: cleanup

Massively reduce #ifdefs all over (23 #ifdef lines less so far)
Moved conversion-specific code to non-ascii.c

13 years agoImprove MinGW static makefile builds.
Guenter Knauf [Tue, 19 Apr 2011 18:59:24 +0000 (20:59 +0200)]
Improve MinGW static makefile builds.

It is now possible to use any combination of features without
having to 1st add makefile targets to the main makefile. The
main makefile now passes the 'mingw32-feat1-feat2' as var CFG,
and the ./[lib|src]/Makefile.m32 parses the CFG var to determine
the features to be enabled.

13 years agoEnabled MinGW native Windows IDN build.
Guenter Knauf [Tue, 19 Apr 2011 15:28:28 +0000 (17:28 +0200)]
Enabled MinGW native Windows IDN build.

13 years agoWindows native IDN fixes.
Guenter Knauf [Tue, 19 Apr 2011 15:13:09 +0000 (17:13 +0200)]
Windows native IDN fixes.

changed windows.h include to system header;
changed obsolete 2nd check for str_w to str_utf8 in order to catch
malloc() failure and avoid a free(NULL);
changed calls to GetLastError() to void to kill unsused var compiler
warnings;
moved one call to GetLastError() into else case so that its only
called when WideCharToMultiByte() really fails.

13 years agoWindows native IDN fixes.
Guenter Knauf [Tue, 19 Apr 2011 14:45:54 +0000 (16:45 +0200)]
Windows native IDN fixes.

Provide prototype for curl_win32_idn_to_ascii();
remove wrong 3rd parameter from curl_win32_idn_to_ascii() call.

13 years agocurl-config: fix version output
Daniel Stenberg [Tue, 19 Apr 2011 14:41:34 +0000 (16:41 +0200)]
curl-config: fix version output

do the s/VERSION/CURLVERSION replacement for the human redable output
for --checkfor

Reported by: Ryan Schmidt

13 years agoRELEASE-NOTES: synced with 5aae3c13e2
Daniel Stenberg [Tue, 19 Apr 2011 12:08:25 +0000 (14:08 +0200)]
RELEASE-NOTES: synced with 5aae3c13e2

13 years agoUpdated default (recommended) dependency versions.
Guenter Knauf [Tue, 19 Apr 2011 12:32:08 +0000 (14:32 +0200)]
Updated default (recommended) dependency versions.

13 years agoUpdated default (recommended) dependency versions.
Guenter Knauf [Tue, 19 Apr 2011 12:26:51 +0000 (14:26 +0200)]
Updated default (recommended) dependency versions.

13 years agotransfer-encoding: document the options
Daniel Stenberg [Thu, 14 Apr 2011 20:59:34 +0000 (22:59 +0200)]
transfer-encoding: document the options

The new libcurl and command line options are now described.

13 years agotransfer-encoding: added new option and cmdline
Daniel Stenberg [Thu, 14 Apr 2011 20:45:42 +0000 (22:45 +0200)]
transfer-encoding: added new option and cmdline

Added CURLOPT_TRANSFER_ENCODING as the option to set to request Transfer
Encoding in HTTP requests (if built zlib enabled). I also renamed
CURLOPT_ENCODING to CURLOPT_ACCEPT_ENCODING (while keeping the old name
around) to reduce the confusion when we have to encoding options for
HTTP.

--tr-encoding is now the new command line option for curl to request
this, and thus I updated the test cases accordingly.

13 years agoCURLE_BAD_CONTENT_ENCODING: now used for transfer encoding too
Daniel Stenberg [Tue, 12 Apr 2011 20:09:18 +0000 (22:09 +0200)]
CURLE_BAD_CONTENT_ENCODING: now used for transfer encoding too

13 years agoTE: do the Connection: header
Daniel Stenberg [Mon, 11 Apr 2011 14:30:14 +0000 (16:30 +0200)]
TE: do the Connection: header

When TE: is inserted in the request, we must add a "Connection: TE" as
well to be HTTP 1.1 compliant. If a custom Connection: header is passed
in, we must use that and only append TE to it. Test case 1125 verifies
TE: + custom Connection:.

13 years agotest1124: verify gzip AND chunked transfer-encoding
Daniel Stenberg [Fri, 8 Apr 2011 20:58:06 +0000 (22:58 +0200)]
test1124: verify gzip AND chunked transfer-encoding