Michael Wallner [Tue, 26 Apr 2016 12:04:41 +0000 (14:04 +0200)]
let the client share cookies/tls sessions
A curl client handle now contains a curl_multi and a curl_share handle.
Test client021.phpt still fails, so somethings still at odds here.
Michael Wallner [Wed, 13 Apr 2016 13:07:14 +0000 (15:07 +0200)]
reset errorcode
fixes github issue #38
Michael Wallner [Fri, 1 Apr 2016 13:13:06 +0000 (15:13 +0200)]
add/improve configure checks for default CA bundle/path
See github issue #31
Michael Wallner [Thu, 31 Mar 2016 13:15:46 +0000 (15:15 +0200)]
this gonna be 2.6
Michael Wallner [Thu, 31 Mar 2016 13:12:19 +0000 (15:12 +0200)]
allow setting multiple headers with the same name
Only http\Message::addHeader will transform the headers into a single
one where the values will be concatenated by comma.
Closes github issue #34
Remi Collet [Sat, 26 Mar 2016 10:39:09 +0000 (11:39 +0100)]
skip online test
Michael Wallner [Wed, 9 Mar 2016 13:45:47 +0000 (14:45 +0100)]
back to dev [ci skip]
Michael Wallner [Wed, 9 Mar 2016 09:30:26 +0000 (10:30 +0100)]
prepare 2.5.6
Michael Wallner [Wed, 9 Mar 2016 09:25:34 +0000 (10:25 +0100)]
add CURL_HTTP_VERSION_2TLS
rc0r [Thu, 3 Mar 2016 14:05:33 +0000 (15:05 +0100)]
Possible null pointer dereference in php_http_url_mod() fixed.
Michael Wallner [Wed, 9 Mar 2016 08:21:28 +0000 (09:21 +0100)]
fix bug #71719 (Buffer overflow in HTTP url parsing functions)
The parser's offset was not reset when we softfail in scheme
parsing and continue to parse a path.
Thanks to hlt99 at blinkenshell dot org for the report.
Michael Wallner [Fri, 22 Jan 2016 13:03:07 +0000 (14:03 +0100)]
Merge pull request #22 from Jan-E/v2.5.x
Fix PHP5 config.w32
Jan-E [Fri, 22 Jan 2016 12:36:48 +0000 (13:36 +0100)]
Fix PHP5 config.w32
Michael Wallner [Thu, 21 Jan 2016 16:30:55 +0000 (17:30 +0100)]
SSL_VERIFYSTATUS is only availbe for nss, gtls and openssl
fixes issue #20
Michael Wallner [Tue, 19 Jan 2016 08:53:37 +0000 (09:53 +0100)]
update travis/pecl
Michael Wallner [Mon, 7 Dec 2015 10:17:38 +0000 (11:17 +0100)]
fix travis
Michael Wallner [Mon, 7 Dec 2015 10:16:36 +0000 (11:16 +0100)]
back to dev
Michael Wallner [Mon, 7 Dec 2015 08:21:48 +0000 (09:21 +0100)]
release 2.5.5
Michael Wallner [Thu, 3 Dec 2015 17:09:49 +0000 (18:09 +0100)]
fix travis badge
Michael Wallner [Thu, 3 Dec 2015 09:27:36 +0000 (10:27 +0100)]
fix header target
Michael Wallner [Thu, 3 Dec 2015 08:50:07 +0000 (09:50 +0100)]
Fix gh-issue #16
Switching to CURLOPT_CUSTOMREQUESTS for all methods made us lose the
default setting of curl's "Content-Length: 0" on empty POST/PUT/PATCH
requests.
Michael Wallner [Thu, 3 Dec 2015 07:06:43 +0000 (08:06 +0100)]
fllowup on standards
Michael Wallner [Mon, 28 Sep 2015 20:54:10 +0000 (22:54 +0200)]
gitter
Michael Wallner [Mon, 28 Sep 2015 14:08:14 +0000 (16:08 +0200)]
attempt to implement some personal standards
Michael Wallner [Fri, 25 Sep 2015 12:10:28 +0000 (14:10 +0200)]
release 2.5.3
Michael Wallner [Fri, 25 Sep 2015 11:27:50 +0000 (13:27 +0200)]
add missing test
Michael Wallner [Fri, 25 Sep 2015 07:32:16 +0000 (09:32 +0200)]
administrativa; [ci ignore]
Michael Wallner [Fri, 25 Sep 2015 07:09:42 +0000 (09:09 +0200)]
be more strict on hostname layout
Michael Wallner [Fri, 25 Sep 2015 07:09:09 +0000 (09:09 +0200)]
fail on parse error
Michael Wallner [Fri, 25 Sep 2015 06:36:22 +0000 (08:36 +0200)]
gh: fix issue #12;
Trying to set an invalid URL on an http\Message instance might cause a
crash.
Michael Wallner [Thu, 10 Sep 2015 05:30:11 +0000 (07:30 +0200)]
release 2.5.2
Michael Wallner [Wed, 9 Sep 2015 15:49:49 +0000 (17:49 +0200)]
fix test
Michael Wallner [Wed, 9 Sep 2015 14:29:57 +0000 (16:29 +0200)]
prepare 2.5.2
Michael Wallner [Tue, 8 Sep 2015 08:13:29 +0000 (10:13 +0200)]
fixed HEAD regression always warning about a partial file transfer
Michael Wallner [Mon, 7 Sep 2015 11:42:25 +0000 (13:42 +0200)]
don't rely on external services (tm)
Michael Wallner [Mon, 7 Sep 2015 09:32:40 +0000 (11:32 +0200)]
add "path_as_is" request option (libcurl >=7.42)
Michael Wallner [Tue, 1 Sep 2015 08:13:14 +0000 (10:13 +0200)]
administrativa [ci skip]
Michael Wallner [Tue, 1 Sep 2015 07:37:41 +0000 (09:37 +0200)]
update travis badge [ci skip]
Michael Wallner [Tue, 1 Sep 2015 07:32:08 +0000 (09:32 +0200)]
update travis/pecl
Michael Wallner [Thu, 6 Aug 2015 08:43:08 +0000 (10:43 +0200)]
update doc links
Michael Wallner [Mon, 3 Aug 2015 15:37:32 +0000 (17:37 +0200)]
Fix README
Github does not do definition lists
[ci skip]
Michael Wallner [Mon, 3 Aug 2015 14:44:26 +0000 (16:44 +0200)]
add README
Michael Wallner [Mon, 3 Aug 2015 13:29:26 +0000 (15:29 +0200)]
fix for travis
Michael Wallner [Mon, 3 Aug 2015 11:48:28 +0000 (13:48 +0200)]
timeout on stdin
Michael Wallner [Mon, 3 Aug 2015 10:59:57 +0000 (12:59 +0200)]
add more logging
Michael Wallner [Mon, 3 Aug 2015 10:33:51 +0000 (12:33 +0200)]
use a longer timeout
Michael Wallner [Mon, 3 Aug 2015 10:23:04 +0000 (12:23 +0200)]
break on timeout
Michael Wallner [Mon, 3 Aug 2015 09:18:28 +0000 (11:18 +0200)]
fix datetime warning in logger
Michael Wallner [Mon, 3 Aug 2015 08:18:15 +0000 (10:18 +0200)]
fix logger
Michael Wallner [Mon, 3 Aug 2015 08:05:37 +0000 (10:05 +0200)]
add some logs
Michael Wallner [Mon, 3 Aug 2015 07:09:32 +0000 (09:09 +0200)]
travis
Michael Wallner [Mon, 3 Aug 2015 07:09:05 +0000 (09:09 +0200)]
add some error logging
Michael Wallner [Mon, 3 Aug 2015 07:07:20 +0000 (09:07 +0200)]
precise comes with libcurl4
Michael Wallner [Mon, 3 Aug 2015 07:02:18 +0000 (09:02 +0200)]
fix typo
Michael Wallner [Fri, 31 Jul 2015 18:26:14 +0000 (20:26 +0200)]
update travis-pecl
Michael Wallner [Fri, 31 Jul 2015 14:50:20 +0000 (16:50 +0200)]
update travis-pecl
Michael Wallner [Fri, 31 Jul 2015 13:38:06 +0000 (15:38 +0200)]
push travis
Michael Wallner [Fri, 31 Jul 2015 13:33:44 +0000 (15:33 +0200)]
travis
Michael Wallner [Tue, 28 Jul 2015 08:17:39 +0000 (10:17 +0200)]
release 2.5.1
Michael Wallner [Mon, 27 Jul 2015 07:11:46 +0000 (09:11 +0200)]
prepare 2.5.1
Michael Wallner [Wed, 22 Jul 2015 05:18:21 +0000 (07:18 +0200)]
Fix gh-issue #7
Fix crash on returning from a sub-call to querystring from env_request
after an exception.
Closes gh-issue #7
Michael Wallner [Wed, 22 Jul 2015 04:51:39 +0000 (06:51 +0200)]
Fix gh-issue #6
Allow RFC1738 unsafe characters in URL query/fragment.
Closes issue #6.
Michael Wallner [Tue, 21 Jul 2015 09:21:38 +0000 (11:21 +0200)]
provide RTLD_LAZY compatibility
Michael Wallner [Thu, 16 Jul 2015 11:07:55 +0000 (13:07 +0200)]
fix gh-issue #3
Michael Wallner [Mon, 13 Jul 2015 14:59:30 +0000 (16:59 +0200)]
Enable certinfo on all supporting backends
OpenSSL: libcurl v7.19.1
NSS: libcurl v7.34.0
GSKit: libcurl v7.39.0
GnuTLS: libcurl v7.42.0
Michael Wallner [Mon, 13 Jul 2015 14:44:26 +0000 (16:44 +0200)]
add recent curl options
Michael Wallner [Mon, 13 Jul 2015 08:35:44 +0000 (10:35 +0200)]
Fix gh-issue #2: comparison of obsolete pointers in the header parser
Closes #2.
The eol_str pointer could become obsolete due to later usage of
php_http_buffer_fix and render the result of arithmetics against the
changed buffer->data pointer useless or harmgful.
Thanks @xiaoyjy.
Michael Wallner [Fri, 10 Jul 2015 07:50:12 +0000 (09:50 +0200)]
Fix VC11 build
Michael Wallner [Thu, 9 Jul 2015 06:56:36 +0000 (08:56 +0200)]
2.5
Michael Wallner [Tue, 16 Jun 2015 10:24:48 +0000 (12:24 +0200)]
backport check
Michael Wallner [Fri, 12 Jun 2015 06:25:54 +0000 (08:25 +0200)]
workaround wrongly quoted arginfo names
Michael Wallner [Fri, 12 Jun 2015 06:25:10 +0000 (08:25 +0200)]
support ob_clean
Michael Wallner [Fri, 22 May 2015 07:29:42 +0000 (09:29 +0200)]
fix warning, and place bet on the safe side
Michael Wallner [Fri, 22 May 2015 07:27:00 +0000 (09:27 +0200)]
fix warning
Michael Wallner [Thu, 21 May 2015 12:36:17 +0000 (14:36 +0200)]
prepare 2.5.0RC1
Michael Wallner [Thu, 21 May 2015 10:30:34 +0000 (12:30 +0200)]
administrativa
Michael Wallner [Thu, 21 May 2015 07:55:15 +0000 (09:55 +0200)]
fix http\Params::__toString() with RFC5988 payload; fix tests
Michael Wallner [Thu, 7 May 2015 20:18:35 +0000 (22:18 +0200)]
only consider 2xx cacheable
Michael Wallner [Thu, 7 May 2015 20:10:31 +0000 (22:10 +0200)]
rfc5988 fixes
Michael Wallner [Mon, 27 Apr 2015 19:19:50 +0000 (21:19 +0200)]
basic support for RFC5988 (Web Linking)
Michael Wallner [Mon, 27 Apr 2015 19:18:41 +0000 (21:18 +0200)]
add PHP_HTTP_URL_SANITIZE_PATH to default flags of Url::mod()
Remi Collet [Fri, 24 Apr 2015 06:42:18 +0000 (08:42 +0200)]
fix skip
Remi Collet [Wed, 8 Apr 2015 11:13:58 +0000 (13:13 +0200)]
missing tests in archive
Remi Collet [Wed, 8 Apr 2015 10:59:24 +0000 (12:59 +0200)]
missing file in archive
Remi Collet [Wed, 8 Apr 2015 10:58:19 +0000 (12:58 +0200)]
Merge branch 'master' of git.php.net:/pecl/http/pecl_http
* 'master' of git.php.net:/pecl/http/pecl_http:
back to dev
release 2.4.3
fix bug #69357
back to dev
release 2.4.2
Fixed bug #69313
release 2.4.2
CS
fix for bug #69076, fix handling of URLs with lone '?' as last character
support libidn2 and ICU as fallbacksx
defer warnings/exceptions of the client
back to dev
release 2.4.1
Michael Wallner [Wed, 8 Apr 2015 10:14:56 +0000 (12:14 +0200)]
back to dev
Michael Wallner [Wed, 8 Apr 2015 10:12:49 +0000 (12:12 +0200)]
release 2.4.3
Michael Wallner [Wed, 8 Apr 2015 10:05:59 +0000 (12:05 +0200)]
fix bug #69357
Michael Wallner [Fri, 3 Apr 2015 12:22:38 +0000 (14:22 +0200)]
back to dev
Michael Wallner [Fri, 3 Apr 2015 12:07:24 +0000 (14:07 +0200)]
release 2.4.2
Michael Wallner [Fri, 27 Mar 2015 09:13:40 +0000 (10:13 +0100)]
Fixed bug #69313
Michael Wallner [Mon, 23 Mar 2015 09:31:39 +0000 (10:31 +0100)]
release 2.4.2
Michael Wallner [Mon, 23 Mar 2015 07:22:31 +0000 (08:22 +0100)]
CS
Boris Madzar [Sun, 22 Mar 2015 04:54:12 +0000 (00:54 -0400)]
fix for bug #69076, fix handling of URLs with lone '?' as last character
Michael Wallner [Fri, 20 Mar 2015 07:35:10 +0000 (08:35 +0100)]
support libidn2 and ICU as fallbacksx
Michael Wallner [Fri, 20 Mar 2015 07:28:40 +0000 (08:28 +0100)]
defer warnings/exceptions of the client
This enables the following pattern:
<?php
use http\Client;
function handle_response_and_dequeue($res) {
var_dump($res->getResponseCode());
return true; //dequeue
}
$client = new Client;
$client->enqueue(new Client\Request(...),"handle_response_and_dequeue");
$client->enqueue(new Client\Request(...),"handle_response_and_dequeue");
$client->enqueue(new Client\Request(...),"handle_response_and_dequeue");
while (count($client)) {
try {
$client->send();
} catch (Exception $e) {
echo $e->getMessage(),"\n";
}
}
Michael Wallner [Fri, 20 Mar 2015 07:35:58 +0000 (08:35 +0100)]
back to dev
Michael Wallner [Wed, 18 Mar 2015 07:19:43 +0000 (08:19 +0100)]
release 2.4.1
Remi Collet [Wed, 18 Mar 2015 07:15:49 +0000 (08:15 +0100)]
fix build wih PHP 5.4
Remi Collet [Wed, 18 Mar 2015 07:12:31 +0000 (08:12 +0100)]
Merge branch 'master' of git.php.net:/pecl/http/pecl_http
* 'master' of git.php.net:/pecl/http/pecl_http:
release 2.4.0
it is always bad to rely on external things
back to dev
release 2.3.2
fis querystring offset set bug
fis querystring offset set bug
this test requires online