platform/upstream/curl.git
10 years agokeywords: don't use STDERR for good info
Daniel Stenberg [Sun, 30 Mar 2014 15:00:05 +0000 (17:00 +0200)]
keywords: don't use STDERR for good info

10 years agotests: Added email unit tests to verify login credential connection re-use
Steve Holme [Sun, 30 Mar 2014 13:55:27 +0000 (14:55 +0100)]
tests: Added email unit tests to verify login credential connection re-use

10 years agotests: Corrected "APOP" authentication keyword
Steve Holme [Sun, 30 Mar 2014 11:05:38 +0000 (12:05 +0100)]
tests: Corrected "APOP" authentication keyword

10 years agotests: Replaced email authentication keywords with SASL based keywords
Steve Holme [Sun, 30 Mar 2014 11:01:15 +0000 (12:01 +0100)]
tests: Replaced email authentication keywords with SASL based keywords

As the email protocols implement SASL authentication rather than IMAP,
POP3 and SMTP specific authentication, updated the authentication
keywords to reflect this.

10 years agotests: Added "Clear Text" authentication keyword
Steve Holme [Sun, 30 Mar 2014 10:40:50 +0000 (11:40 +0100)]
tests: Added "Clear Text" authentication keyword

10 years agotests: Added "SASL" authentication keyword
Steve Holme [Sun, 30 Mar 2014 10:20:19 +0000 (11:20 +0100)]
tests: Added "SASL" authentication keyword

10 years agoimap-append.c: Fixed compilation errors on some platforms
Steve Holme [Sun, 30 Mar 2014 09:56:51 +0000 (10:56 +0100)]
imap-append.c: Fixed compilation errors on some platforms

In the initializer for len, there is no prototype for "strlen".
In this statement, there is no prototype for "memcpy".

10 years agoftpserver.pl: Removed some unused variables
Steve Holme [Sat, 29 Mar 2014 23:45:58 +0000 (23:45 +0000)]
ftpserver.pl: Removed some unused variables

10 years agoftpserver.pl: Reworked some variable names to be more meaningful
Steve Holme [Sat, 29 Mar 2014 23:30:58 +0000 (23:30 +0000)]
ftpserver.pl: Reworked some variable names to be more meaningful

10 years agoftpserver.pl: Corrected some indentation in senddata()
Steve Holme [Sat, 29 Mar 2014 23:10:48 +0000 (23:10 +0000)]
ftpserver.pl: Corrected some indentation in senddata()

10 years agolib1513: fix callback proto to silence warning
Daniel Stenberg [Fri, 28 Mar 2014 14:47:18 +0000 (15:47 +0100)]
lib1513: fix callback proto to silence warning

10 years agoftpserver.pl: Added fallback to <data> support when using multiple URLs
Steve Holme [Sat, 29 Mar 2014 11:30:01 +0000 (11:30 +0000)]
ftpserver.pl: Added fallback to <data> support when using multiple URLs

Added support for falling back to <data> when <data1>, <data2>, etc...
don't exist in the <reply> section of a unit test.

10 years agoftpserver.pl: Updated email based get reply data code to use new method
Steve Holme [Sat, 29 Mar 2014 11:20:00 +0000 (11:20 +0000)]
ftpserver.pl: Updated email based get reply data code to use new method

10 years agoftpserver.pl: Fixed syntax error from commit 3a29ee41
Steve Holme [Sat, 29 Mar 2014 12:32:03 +0000 (12:32 +0000)]
ftpserver.pl: Fixed syntax error from commit 3a29ee41

10 years agoftpserver.pl: Updated argument code in STATUS_imap() to be more meaningful
Steve Holme [Sat, 29 Mar 2014 11:00:25 +0000 (11:00 +0000)]
ftpserver.pl: Updated argument code in STATUS_imap() to be more meaningful

10 years agoftpserver.pl: Introduced common method for getting a test's reply data
Steve Holme [Sat, 29 Mar 2014 10:29:03 +0000 (10:29 +0000)]
ftpserver.pl: Introduced common method for getting a test's reply data

10 years agosmtp: Fixed login denied when server doesn't support AUTH capability
Steve Holme [Fri, 28 Mar 2014 18:21:27 +0000 (18:21 +0000)]
smtp: Fixed login denied when server doesn't support AUTH capability

Specifying user credentials when the SMTP server doesn't support
authentication would cause curl to display "No known authentication
mechanisms supported!" and return CURLE_LOGIN_DENIED.

Reported-by: Tom Sparrow
Bug: http://curl.haxx.se/mail/lib-2014-03/0173.html

10 years agowinbuild: added warnless.c to fix build
Cody Mack [Fri, 28 Mar 2014 14:12:12 +0000 (15:12 +0100)]
winbuild: added warnless.c to fix build

10 years agohostcheck: added a system include to define struct in_addr
Dan Fandrich [Wed, 26 Mar 2014 21:27:34 +0000 (22:27 +0100)]
hostcheck: added a system include to define struct in_addr

10 years agotest1397: Fixed compilation with some SSL backends
Dan Fandrich [Wed, 26 Mar 2014 21:06:44 +0000 (22:06 +0100)]
test1397: Fixed compilation with some SSL backends

The test is only valid when one of four SSL backends is in use,
and must otherwise return success.

10 years agotest815/816: Use authentication for both URLs
Dan Fandrich [Wed, 26 Mar 2014 21:02:31 +0000 (22:02 +0100)]
test815/816: Use authentication for both URLs

The improved connection reuse logic would otherwise create a new
connection for each one, which isn't supported by the test
server, nor expected by the test.

10 years agomkhelp: generate code for --disable-manual as well
Daniel Stenberg [Wed, 26 Mar 2014 12:22:10 +0000 (13:22 +0100)]
mkhelp: generate code for --disable-manual as well

This allows configure --disable-manual to run and build without having
to regenerate the src/tool_hugehelp.c file which otherwise is necessary
since we ship tarballs with that file present.

Reported-by: Remi Gacogne
Bug: http://curl.haxx.se/bug/view.cgi?id=1350

10 years agobump: start the 7.37.0 race
Daniel Stenberg [Wed, 26 Mar 2014 07:29:29 +0000 (08:29 +0100)]
bump: start the 7.37.0 race

10 years agoRELEASE-NOTES: 7.36.0
Daniel Stenberg [Tue, 25 Mar 2014 21:57:47 +0000 (22:57 +0100)]
RELEASE-NOTES: 7.36.0

10 years agotest1397: unit test for certificate name wildcard handling
Richard J. Moore [Sat, 22 Feb 2014 15:52:58 +0000 (15:52 +0000)]
test1397: unit test for certificate name wildcard handling

10 years agoCurl_cert_hostcheck: strip trailing dots in host name and wildcard
Daniel Stenberg [Mon, 3 Mar 2014 10:55:23 +0000 (11:55 +0100)]
Curl_cert_hostcheck: strip trailing dots in host name and wildcard

Reported-by: Richard Moore
10 years agoCurl_cert_hostcheck: reject IP address wildcard matches
Daniel Stenberg [Mon, 3 Mar 2014 10:46:36 +0000 (11:46 +0100)]
Curl_cert_hostcheck: reject IP address wildcard matches

There are server certificates used with IP address in the CN field, but
we MUST not allow wild cart certs for hostnames given as IP addresses
only. Therefore we must make Curl_cert_hostcheck() fail such attempts.

Bug: http://curl.haxx.se/docs/adv_20140326B.html
Reported-by: Richard Moore
10 years agourl: Fixed connection re-use when using different log-in credentials
Steve Holme [Thu, 20 Feb 2014 23:51:36 +0000 (23:51 +0000)]
url: Fixed connection re-use when using different log-in credentials

In addition to FTP, other connection based protocols such as IMAP, POP3,
SMTP, SCP, SFTP and LDAP require a new connection when different log-in
credentials are specified. Fixed the detection logic to include these
other protocols.

Bug: http://curl.haxx.se/docs/adv_20140326A.html

10 years agoTHANKS: 14 new friends from the 7.36.0 announcement
Daniel Stenberg [Tue, 25 Mar 2014 21:40:46 +0000 (22:40 +0100)]
THANKS: 14 new friends from the 7.36.0 announcement

10 years agoRELEASE-NOTES: synced with 3ebfaf6a0399b6a
Daniel Stenberg [Tue, 25 Mar 2014 13:54:11 +0000 (14:54 +0100)]
RELEASE-NOTES: synced with 3ebfaf6a0399b6a

10 years agotool_operate: Fixed uninitialised variable under some error situations
Steve Holme [Sun, 23 Mar 2014 11:01:10 +0000 (11:01 +0000)]
tool_operate: Fixed uninitialised variable under some error situations

For example when a URL is not specified or the headers file fails to
open.

10 years agotool_parsecfg: Reworked error handling from commit fc59a9e1
Steve Holme [Sat, 22 Mar 2014 16:50:47 +0000 (16:50 +0000)]
tool_parsecfg: Reworked error handling from commit fc59a9e1

10 years agotool_getparam: Removed "dead assignment" code introduced in commit 1a9b58fc
Steve Holme [Sat, 22 Mar 2014 16:31:13 +0000 (16:31 +0000)]
tool_getparam: Removed "dead assignment" code introduced in commit 1a9b58fc

10 years agopolarssl: avoid extra newlines in debug messages
Gisle Vanem [Sat, 22 Mar 2014 15:52:48 +0000 (16:52 +0100)]
polarssl: avoid extra newlines in debug messages

The debug messages printed inside PolarSSL always seems to end with a
newline. So 'infof()' should not add one. Besides the trace 'line'
should be 'const'.

10 years agortsp: parse "Session:" header properly
Daniel Stenberg [Thu, 20 Mar 2014 10:52:27 +0000 (11:52 +0100)]
rtsp: parse "Session:" header properly

The parser skipped the initial letter, which presumably often is
whitespace but doesn't have to be.

Reported-by: Mike Hasselberg
Bug: http://curl.haxx.se/mail/lib-2014-03/0134.html

10 years agoruntests.pl: verify specified test cases
Daniel Stenberg [Wed, 19 Mar 2014 22:28:28 +0000 (23:28 +0100)]
runtests.pl: verify specified test cases

To better allow arguments like "1 to 9999" without flooding the terminal
with error messages, the given test cases range is now checked and only
test numbers with existing files are actually run.

10 years agoRELEASE-NOTES: fixed typo
Dan Fandrich [Wed, 19 Mar 2014 22:10:56 +0000 (23:10 +0100)]
RELEASE-NOTES: fixed typo

10 years agotrynextip: don't store 'ai' on failed connects...
Daniel Stenberg [Tue, 18 Mar 2014 07:56:13 +0000 (08:56 +0100)]
trynextip: don't store 'ai' on failed connects...

It leads to the "next family" tries starting from the wrong point and thus
fails!

Bug: http://curl.haxx.se/bug/view.cgi?id=1337
Reported-by: ricker
10 years agoRELEASE-NOTES: synced with 47f8e99e78c
Daniel Stenberg [Wed, 19 Mar 2014 15:18:21 +0000 (16:18 +0100)]
RELEASE-NOTES: synced with 47f8e99e78c

10 years agopolarssl: fix possible handshake timeout issue in multi.
Gaël PORTAY [Wed, 19 Mar 2014 14:56:13 +0000 (15:56 +0100)]
polarssl: fix possible handshake timeout issue in multi.

Because of the socket is unblocking, PolarSSL does need call to getsock to
get the action to perform in multi environment.

In some cases, it might happen we have not received yet all data to perform
the handshake. ssh_handshake returns POLARSSL_ERR_NET_WANT_READ, the state
is updated but because of the getsock has not the proper #define macro to,
the library never prevents to select socket for input thus the socket will
never be awaken when last data is available. Thus it leads to timeout.

10 years agopolarssl: break compatibility with version older than 1.3.
Gaël PORTAY [Tue, 18 Mar 2014 18:18:24 +0000 (19:18 +0100)]
polarssl: break compatibility with version older than 1.3.

Remove all #ifdef/else/endif macros that ensure compatibility with polarssl
version previous than 1.3.

10 years agopolarssl: drop use of 1.2 compatibility header.
Gaël PORTAY [Tue, 18 Mar 2014 18:18:23 +0000 (19:18 +0100)]
polarssl: drop use of 1.2 compatibility header.

API has changed since version 1.3. A compatibility header has been created
to ensure forward compatibility for code using old API:
 * x509 certificate structure has been renamed to from x509_cert to
   x509_crt
 * new dedicated setter for RSA certificates ssl_set_own_cert_rsa,
   ssl_set_own_cert is for generic keys
 * ssl_default_ciphersuites has been replaced by function
   ssl_list_ciphersuites()

This patch drops the use of the compatibly header.

10 years agopolarssl: added missing end-of-comment from previous commit
Daniel Stenberg [Tue, 18 Mar 2014 07:03:45 +0000 (08:03 +0100)]
polarssl: added missing end-of-comment from previous commit

10 years agopolarssl: now require 1.3.0+
Daniel Stenberg [Mon, 17 Mar 2014 19:48:06 +0000 (20:48 +0100)]
polarssl: now require 1.3.0+

Also fixed a function name change in the version requirement bump

10 years agopolarssl: fix compilation
hasufell [Mon, 17 Mar 2014 18:03:29 +0000 (19:03 +0100)]
polarssl: fix compilation

Rename x509_cert to x509_crt and add "compat-1.2.h"
include.
This would still need some more thorough conversion
in order to drop "compat-1.2.h" include.

10 years agonss: allow to enable/disable new AES GCM cipher-suites
Kamil Dudka [Fri, 7 Mar 2014 12:14:08 +0000 (13:14 +0100)]
nss: allow to enable/disable new AES GCM cipher-suites

... if built against a new enough version of NSS

10 years agonss: allow to enable/disable new HMAC-SHA256 cipher-suites
Kamil Dudka [Fri, 7 Mar 2014 12:10:54 +0000 (13:10 +0100)]
nss: allow to enable/disable new HMAC-SHA256 cipher-suites

... if built against a new enough version of NSS

10 years agonss: do not enable AES cipher-suites by default
Kamil Dudka [Fri, 7 Mar 2014 12:02:03 +0000 (13:02 +0100)]
nss: do not enable AES cipher-suites by default

... but allow them to be enabled/disabled explicitly.  The default
policy should be maintained at the NSS level.

10 years agotests: made the SASL modes separate keywords
Dan Fandrich [Sat, 15 Mar 2014 10:13:13 +0000 (11:13 +0100)]
tests: made the SASL modes separate keywords

10 years agotests: added missing HTTP NTLM auth keywords
Dan Fandrich [Sat, 15 Mar 2014 09:54:49 +0000 (10:54 +0100)]
tests: added missing HTTP NTLM auth keywords

Also, removed an unneeded strippart

10 years agotests: disable valgrind on the remaining scp/sftp tests
Dan Fandrich [Sat, 15 Mar 2014 09:24:50 +0000 (10:24 +0100)]
tests: disable valgrind on the remaining scp/sftp tests

10 years agovalgrind.supp: added another test 165 suppression
Dan Fandrich [Sat, 15 Mar 2014 09:23:08 +0000 (10:23 +0100)]
valgrind.supp: added another test 165 suppression

This one seems to come and go as the optimizer decides how best
to inline some functions.

10 years agossh: prevent a logic error that could result in an infinite loop
Dan Fandrich [Sat, 15 Mar 2014 08:57:41 +0000 (09:57 +0100)]
ssh: prevent a logic error that could result in an infinite loop

10 years agodocs: fixed a bunch of typos
Dan Fandrich [Thu, 13 Mar 2014 03:48:38 +0000 (04:48 +0100)]
docs: fixed a bunch of typos

10 years agotest640/1: add tests for --head with sftp and scp
Dan Fandrich [Thu, 13 Mar 2014 02:22:02 +0000 (03:22 +0100)]
test640/1: add tests for --head with sftp and scp

This option is currently rather useless with these protocols
when no quote command is given, but it is valid.

10 years agossh: removed a redundant close state transition
Dan Fandrich [Thu, 13 Mar 2014 02:02:38 +0000 (03:02 +0100)]
ssh: removed a redundant close state transition

10 years agossh: abort immediately on a header callback error
Dan Fandrich [Thu, 13 Mar 2014 01:59:24 +0000 (02:59 +0100)]
ssh: abort immediately on a header callback error

10 years agochunked-encoding: provide a readable error string for chunked errors
Daniel Stenberg [Fri, 14 Mar 2014 14:44:18 +0000 (15:44 +0100)]
chunked-encoding: provide a readable error string for chunked errors

10 years agoTODO: remove http2, we now have it
Daniel Stenberg [Tue, 11 Mar 2014 13:10:20 +0000 (14:10 +0100)]
TODO: remove http2, we now have it

10 years agohttp2: free resources on disconnect
Tatsuhiro Tsujikawa [Mon, 10 Mar 2014 17:30:01 +0000 (02:30 +0900)]
http2: free resources on disconnect

... and use Curl_safefree() instead of free()

10 years agoopenssl: info massage with SSL version used
Daniel Stenberg [Mon, 10 Mar 2014 16:11:25 +0000 (17:11 +0100)]
openssl: info massage with SSL version used

Patch-by: byte_bucket
10 years agoRELEASE-NOTES: Synced with 8ddda0e999
Steve Holme [Sun, 9 Mar 2014 19:44:10 +0000 (19:44 +0000)]
RELEASE-NOTES: Synced with 8ddda0e999

10 years agoREADME.http2: clarify the build prerequisites
Daniel Stenberg [Sun, 9 Mar 2014 16:39:46 +0000 (16:39 +0000)]
README.http2: clarify the build prerequisites

10 years agoSSL-PROBLEMS: add "missing intermediate certificates" piece
Daniel Stenberg [Sun, 9 Mar 2014 15:55:13 +0000 (15:55 +0000)]
SSL-PROBLEMS: add "missing intermediate certificates" piece

10 years agoSSL-PROBLEMS: describes common curl+SSL problems
Daniel Stenberg [Sat, 8 Mar 2014 22:21:15 +0000 (22:21 +0000)]
SSL-PROBLEMS: describes common curl+SSL problems

10 years agodocs: remove documentation on setting up krb4 support
Nick Zitzmann [Sat, 8 Mar 2014 17:58:06 +0000 (11:58 -0600)]
docs: remove documentation on setting up krb4 support

The information about building with Kerberos4 support was half a year out
of date. We dropped support for that.

10 years agossh: fix compiler warning converting ssize_t to int
Daniel Stenberg [Thu, 6 Mar 2014 13:25:59 +0000 (13:25 +0000)]
ssh: fix compiler warning converting ssize_t to int

10 years agossh: Fixed a style warning
Dan Fandrich [Thu, 6 Mar 2014 12:39:22 +0000 (13:39 +0100)]
ssh: Fixed a style warning

Also, combined a couple of #ifdef sections

10 years agossh: Pass errors from libssh2_sftp_read up the stack
Dan Fandrich [Thu, 6 Mar 2014 11:48:33 +0000 (12:48 +0100)]
ssh: Pass errors from libssh2_sftp_read up the stack

10 years agoparse_remote_port: error out on illegal port numbers better
Daniel Stenberg [Thu, 6 Mar 2014 00:06:45 +0000 (00:06 +0000)]
parse_remote_port: error out on illegal port numbers better

10 years agoremote_port: allow connect to port 0
Daniel Stenberg [Wed, 5 Mar 2014 17:38:05 +0000 (17:38 +0000)]
remote_port: allow connect to port 0

Port number zero is perfectly allowed to connect to. I moved to storing
the remote port number in an int so that -1 means undefined and 0-65535
can be used for legitimate port numbers.

10 years agomulti_runsingle: move timestamp into INIT
Daniel Stenberg [Mon, 17 Feb 2014 22:43:31 +0000 (23:43 +0100)]
multi_runsingle: move timestamp into INIT

Setting the TIMER_STARTSINGLE timestamp first in CONNECT has the
drawback that for actions that go back to the CONNECT state, the time
stamp is reset and for the multi_socket API there's no corresponding
Curl_expire() then so the timeout logic gets wrong!

Reported-by: Brad Spencer
Bug: http://curl.haxx.se/mail/lib-2014-02/0036.html

10 years agohostcheck: update comment after previous change
Daniel Stenberg [Mon, 3 Mar 2014 12:41:48 +0000 (13:41 +0100)]
hostcheck: update comment after previous change

10 years agohostcheck: Curl_cert_hostcheck is not used by NSS builds
Daniel Stenberg [Mon, 3 Mar 2014 12:39:06 +0000 (13:39 +0100)]
hostcheck: Curl_cert_hostcheck is not used by NSS builds

10 years agoconfigure: call it GSS-API
Michael Osipov [Mon, 3 Mar 2014 10:06:38 +0000 (11:06 +0100)]
configure: call it GSS-API

... since that’s how the RFC calls it.

10 years agox509asn: moved out Curl_verifyhost from NSS builds
Daniel Stenberg [Mon, 3 Mar 2014 07:44:25 +0000 (08:44 +0100)]
x509asn: moved out Curl_verifyhost from NSS builds

... as it isn't used then!

10 years agoNSS: avoid compiler warnings when built without http2 support
Daniel Stenberg [Mon, 3 Mar 2014 07:39:25 +0000 (08:39 +0100)]
NSS: avoid compiler warnings when built without http2 support

10 years agoRework Open Watcom make files to use standard Wmake features
Jiri Malak [Sun, 2 Mar 2014 23:27:38 +0000 (00:27 +0100)]
Rework Open Watcom make files to use standard Wmake features

Remove slash/backslash problem, now only slashes are used,
Wmake automaticaly translate slash/backslash to proper version or tools are not sensitive for it.
Enable spaces in path.
Use internal rm command for all host platforms
Add error message if old Open Watcom version is used. Some old versions exhibit build problems for Curl latest version. Now only versions 1.8, 1.9 and 2.O beta are supported

10 years agoparsedate: Fixed compilation warning
Jiri Malak [Sun, 2 Mar 2014 08:04:35 +0000 (09:04 +0100)]
parsedate: Fixed compilation warning

Remove compilation message for platforms where size of long type
is equal size of int type.

10 years agoRELEASE-NOTES: Synced with 7fef4016de
Steve Holme [Sun, 2 Mar 2014 10:11:12 +0000 (10:11 +0000)]
RELEASE-NOTES: Synced with 7fef4016de

10 years agotool: Do not output libcurl source for the information only parameters
Steve Holme [Sun, 2 Mar 2014 09:50:36 +0000 (09:50 +0000)]
tool: Do not output libcurl source for the information only parameters

Ensure a source file isn't generated for the following informational
command line parameters when --libcurl is specified:

--help, --manual, --version and --engine list

As the output would only include a fairly empty looking main() function
and a call to curl_easy_init() and curl_easy_cleanup() when performed
with --engine list.

10 years agotool: Fixed libcurl source output for multiple operations
Steve Holme [Sun, 2 Mar 2014 09:28:17 +0000 (09:28 +0000)]
tool: Fixed libcurl source output for multiple operations

Correctly output libcurl source code that includes multiply operations
as specified by --next. Note that each operation evaluates to a single
curl_easy_perform() in source code form.

Also note that the output could be optimised a little so global config
options are only output once rather than per operation as is presently
the case.

10 years agotool_metalink.h: Fixed compilation warning
Steve Holme [Sat, 1 Mar 2014 20:11:28 +0000 (20:11 +0000)]
tool_metalink.h: Fixed compilation warning

warning: declaration of 'struct GlobalConfig' will not be visible
outside of this function

10 years agotool: Moved internal variable isatty to the global config
Steve Holme [Sat, 1 Mar 2014 13:49:28 +0000 (13:49 +0000)]
tool: Moved internal variable isatty to the global config

10 years agotool_operate.c: Fixed compilation error
Steve Holme [Sat, 1 Mar 2014 18:06:07 +0000 (18:06 +0000)]
tool_operate.c: Fixed compilation error

incompatible types - from 'OperationConfig *' to 'GlobalConfig *'

10 years agotool: Moved --libcurl to the global config
Steve Holme [Sat, 1 Mar 2014 13:38:00 +0000 (13:38 +0000)]
tool: Moved --libcurl to the global config

10 years agotool: Moved --progress-bar to the global config
Steve Holme [Sat, 1 Mar 2014 13:20:20 +0000 (13:20 +0000)]
tool: Moved --progress-bar to the global config

10 years agotool: Moved --stderr to the global config
Steve Holme [Sat, 1 Mar 2014 13:00:31 +0000 (13:00 +0000)]
tool: Moved --stderr to the global config

10 years agotransfer.c: Fixed non-HTTP2 builds from commit cde0cf7c5e
Steve Holme [Fri, 28 Feb 2014 22:59:10 +0000 (22:59 +0000)]
transfer.c: Fixed non-HTTP2 builds from commit cde0cf7c5e

10 years agoFix bug that HTTP/2 hangs if whole response body is read with headers
Tatsuhiro Tsujikawa [Wed, 26 Feb 2014 16:21:17 +0000 (01:21 +0900)]
Fix bug that HTTP/2 hangs if whole response body is read with headers

For HTTP/2, we may read up everything including responde body with
header fields in Curl_http_readwrite_headers. If no content-length is
provided, curl waits for the connection close, which we emulate it
using conn->proto.httpc.closed = TRUE. The thing is if we read
everything, then http2_recv won't be called and we cannot signal the
HTTP/2 stream has closed. As a workaround, we return nonzero from
data_pending to call http2_recv.

10 years agohttp2: build with current nghttp2 version
Daniel Stenberg [Fri, 28 Feb 2014 22:26:43 +0000 (23:26 +0100)]
http2: build with current nghttp2 version

nghttp2 has yet again extended its callback struct and this is an
attempt to make curl compile with nghttp2 from current git

10 years agotool_main: Fixed a memory leak on main_init error
Dan Fandrich [Fri, 28 Feb 2014 20:57:04 +0000 (21:57 +0100)]
tool_main: Fixed a memory leak on main_init error

10 years agotest96: Updated accordly for recent changes
Steve Holme [Fri, 28 Feb 2014 09:45:38 +0000 (09:45 +0000)]
test96: Updated accordly for recent changes

10 years agotool_cfgable: Code policing of structure pointers
Steve Holme [Thu, 27 Feb 2014 20:59:15 +0000 (20:59 +0000)]
tool_cfgable: Code policing of structure pointers

10 years agotool: Moved --trace and --verbose to the global config
Steve Holme [Thu, 27 Feb 2014 20:51:49 +0000 (20:51 +0000)]
tool: Moved --trace and --verbose to the global config

10 years agotool_main: Forgot to initialise the first operation's global pointer
Steve Holme [Thu, 27 Feb 2014 20:31:10 +0000 (20:31 +0000)]
tool_main: Forgot to initialise the first operation's global pointer

10 years agotool: Moved --silient to the global config
Steve Holme [Thu, 27 Feb 2014 20:21:23 +0000 (20:21 +0000)]
tool: Moved --silient to the global config

Other global options such as --libcurl, --trace and --verbose to
follow.

10 years agotool_cfgable: Added GlobalConfig pointer to OperationConfig
Steve Holme [Wed, 26 Feb 2014 21:02:53 +0000 (21:02 +0000)]
tool_cfgable: Added GlobalConfig pointer to OperationConfig

In order to ease the moving of global options such as the error stream,
updated the OperationConfig structure to point to the GlobalConfig.

10 years agotool: Added support to .curlrc for URL specific options
Steve Holme [Sun, 23 Feb 2014 18:01:36 +0000 (18:01 +0000)]
tool: Added support to .curlrc for URL specific options

In addition to adding support for URL specific options via the command
line with --next it is now possible to specify "next" in .curlrc.

10 years agotool: Reworked argument parsing to use --next/-:
Steve Holme [Sun, 23 Feb 2014 17:32:19 +0000 (17:32 +0000)]
tool: Reworked argument parsing to use --next/-:

Follow up to commit 1a9b58fcb2 to replace the : command line option
with --next and -:.