m6w6/ext-http
9 years agoMerge branch 'master' into phpng
Michael Wallner [Sun, 8 Feb 2015 15:23:13 +0000 (16:23 +0100)] 
Merge branch 'master' into phpng

Conflicts:
php_http_client.c
php_http_client.h
php_http_client_curl.c
php_http_env_response.c
php_http_info.c
php_http_message.c
php_http_object.c
php_http_object.h
php_http_url.c
php_http_url.h

9 years agoMerge branch 'R_2_2'
Michael Wallner [Sat, 7 Feb 2015 11:30:04 +0000 (12:30 +0100)] 
Merge branch 'R_2_2'

9 years agoback to dev v2.2.x
Michael Wallner [Sat, 7 Feb 2015 11:29:47 +0000 (12:29 +0100)] 
back to dev

9 years agofix assertion RELEASE_2_2_1
Michael Wallner [Sat, 7 Feb 2015 11:25:56 +0000 (12:25 +0100)] 
fix assertion

9 years agoFixed Bug #69000 (http\Url breaks down with very long URL query strings)
Michael Wallner [Sat, 7 Feb 2015 11:20:10 +0000 (12:20 +0100)] 
Fixed Bug #69000 (http\Url breaks down with very long URL query strings)

9 years agooptimize frequent method calls
Michael Wallner [Fri, 6 Feb 2015 14:32:57 +0000 (15:32 +0100)] 
optimize frequent method calls

9 years agoremove cookies from transfer-info
Michael Wallner [Fri, 6 Feb 2015 11:21:03 +0000 (12:21 +0100)] 
remove cookies from transfer-info

it's only in netscape format and awfully slow anyway

9 years agoreduce cost of parsing http start line
Michael Wallner [Fri, 6 Feb 2015 11:13:19 +0000 (12:13 +0100)] 
reduce cost of parsing http start line

9 years agounix_socket_path request option
Michael Wallner [Fri, 6 Feb 2015 11:00:40 +0000 (12:00 +0100)] 
unix_socket_path request option

9 years agoswitch from the deprecated ioctl to the seek function
Michael Wallner [Thu, 5 Feb 2015 16:03:19 +0000 (17:03 +0100)] 
switch from the deprecated ioctl to the seek function

9 years agoadd test
Michael Wallner [Thu, 5 Feb 2015 15:26:43 +0000 (16:26 +0100)] 
add test

9 years agoensure options are applied before the headers are set
Michael Wallner [Thu, 5 Feb 2015 15:26:19 +0000 (16:26 +0100)] 
ensure options are applied before the headers are set

9 years agosince we use the curl write handler we can use curl's decoder
Michael Wallner [Thu, 5 Feb 2015 15:25:27 +0000 (16:25 +0100)] 
since we use the curl write handler we can use curl's decoder

9 years agoverifystatus SSL request option support (OCSP)
Michael Wallner [Thu, 5 Feb 2015 14:49:33 +0000 (15:49 +0100)] 
verifystatus SSL request option support (OCSP)

9 years agotlsauth SSL request option support
Michael Wallner [Thu, 5 Feb 2015 14:22:17 +0000 (15:22 +0100)] 
tlsauth SSL request option support

9 years agoimplement restrictions on TE
Michael Wallner [Thu, 5 Feb 2015 12:03:02 +0000 (13:03 +0100)] 
implement restrictions on TE

9 years agoCURLOPT_PROXYHEADER support; default chunked encoding for stream
Michael Wallner [Thu, 5 Feb 2015 10:18:19 +0000 (11:18 +0100)] 
CURLOPT_PROXYHEADER support; default chunked encoding for stream
responses

9 years agouse url authority parser for CONNECT messages
Michael Wallner [Thu, 5 Feb 2015 10:17:16 +0000 (11:17 +0100)] 
use url authority parser for CONNECT messages

9 years agoadd authority parsing
Michael Wallner [Thu, 5 Feb 2015 10:16:25 +0000 (11:16 +0100)] 
add authority parsing

9 years agoadd CURLOPT_PINNEDPUBLICKEY
Michael Wallner [Wed, 4 Feb 2015 14:10:53 +0000 (15:10 +0100)] 
add CURLOPT_PINNEDPUBLICKEY

9 years agoadministrativa
Michael Wallner [Wed, 4 Feb 2015 14:05:19 +0000 (15:05 +0100)] 
administrativa

9 years agoupdate expectations how history requests look like
Michael Wallner [Wed, 4 Feb 2015 10:54:36 +0000 (11:54 +0100)] 
update expectations how history requests look like

9 years agofix curl compile checks
Michael Wallner [Wed, 4 Feb 2015 09:06:38 +0000 (10:06 +0100)] 
fix curl compile checks

9 years agocheck for HTTP2 support
Michael Wallner [Wed, 4 Feb 2015 09:06:34 +0000 (10:06 +0100)] 
check for HTTP2 support

9 years agoupdate response headers
Michael Wallner [Tue, 3 Feb 2015 19:09:38 +0000 (20:09 +0100)] 
update response headers

9 years agoPOC for HTTP2 support
Michael Wallner [Tue, 3 Feb 2015 14:35:15 +0000 (15:35 +0100)] 
POC for HTTP2 support

9 years agozend_string updates
Michael Wallner [Tue, 27 Jan 2015 04:19:47 +0000 (05:19 +0100)] 
zend_string updates

9 years agoback to dev
Michael Wallner [Tue, 27 Jan 2015 03:35:58 +0000 (04:35 +0100)] 
back to dev

9 years ago2.2.0 RELEASE_2_2_0
Michael Wallner [Tue, 27 Jan 2015 03:27:56 +0000 (04:27 +0100)] 
2.2.0

9 years agosimplify
Michael Wallner [Thu, 22 Jan 2015 14:51:39 +0000 (15:51 +0100)] 
simplify

9 years agothe leak is actually from zend_list
Michael Wallner [Thu, 22 Jan 2015 14:51:26 +0000 (15:51 +0100)] 
the leak is actually from zend_list

9 years agofix message object reversion
Michael Wallner [Thu, 22 Jan 2015 13:12:40 +0000 (14:12 +0100)] 
fix message object reversion

9 years agofix handling of indirect zvals of properties hashtables
Michael Wallner [Thu, 22 Jan 2015 11:52:50 +0000 (12:52 +0100)] 
fix handling of indirect zvals of properties hashtables

9 years agozend_read_property API update
Michael Wallner [Thu, 22 Jan 2015 10:08:12 +0000 (11:08 +0100)] 
zend_read_property API update

9 years agoaddref
Michael Wallner [Thu, 22 Jan 2015 08:56:18 +0000 (09:56 +0100)] 
addref

9 years agoext/standard API updates
Michael Wallner [Thu, 22 Jan 2015 08:52:14 +0000 (09:52 +0100)] 
ext/standard API updates

9 years agosimplify
Michael Wallner [Thu, 22 Jan 2015 08:34:35 +0000 (09:34 +0100)] 
simplify

9 years agofix env request
Michael Wallner [Wed, 21 Jan 2015 23:05:49 +0000 (00:05 +0100)] 
fix env request

9 years agofix env response
Michael Wallner [Wed, 21 Jan 2015 22:28:50 +0000 (23:28 +0100)] 
fix env response

9 years agofix env response cookies
Michael Wallner [Wed, 21 Jan 2015 21:31:41 +0000 (22:31 +0100)] 
fix env response cookies

9 years agofix cainfo default configuration; fix array_merge
Michael Wallner [Wed, 21 Jan 2015 20:56:56 +0000 (21:56 +0100)] 
fix cainfo default configuration; fix array_merge

9 years agofix poperty read handler and propro usage
Michael Wallner [Wed, 21 Jan 2015 20:18:36 +0000 (21:18 +0100)] 
fix poperty read handler and propro usage

9 years agofix read_property handler (return_value lives on stack of zend_read_property)
Michael Wallner [Wed, 21 Jan 2015 16:10:29 +0000 (17:10 +0100)] 
fix read_property handler (return_value lives on stack of zend_read_property)

9 years agocheck string options for NULL
Michael Wallner [Wed, 21 Jan 2015 16:09:48 +0000 (17:09 +0100)] 
check string options for NULL

9 years agomore checks
Michael Wallner [Wed, 21 Jan 2015 16:09:23 +0000 (17:09 +0100)] 
more checks

9 years agomissing int->size_t
Michael Wallner [Tue, 20 Jan 2015 14:16:56 +0000 (15:16 +0100)] 
missing int->size_t

9 years agofix test
Michael Wallner [Tue, 20 Jan 2015 14:16:47 +0000 (15:16 +0100)] 
fix test

9 years agofix leak
Michael Wallner [Tue, 20 Jan 2015 14:10:25 +0000 (15:10 +0100)] 
fix leak

9 years agofix cookies
Michael Wallner [Tue, 20 Jan 2015 14:07:34 +0000 (15:07 +0100)] 
fix cookies

9 years agofix message parser
Michael Wallner [Mon, 19 Jan 2015 14:50:09 +0000 (15:50 +0100)] 
fix message parser

9 years agofix message parser content length
Michael Wallner [Mon, 19 Jan 2015 13:30:54 +0000 (14:30 +0100)] 
fix message parser content length

9 years agofix encoding stream objects
Michael Wallner [Mon, 19 Jan 2015 12:44:06 +0000 (13:44 +0100)] 
fix encoding stream objects

9 years agopre-fix request body
Michael Wallner [Mon, 19 Jan 2015 12:09:22 +0000 (13:09 +0100)] 
pre-fix request body

9 years agofix arg by ref handling
Michael Wallner [Mon, 19 Jan 2015 10:52:40 +0000 (11:52 +0100)] 
fix arg by ref handling

9 years agotypo
Michael Wallner [Mon, 19 Jan 2015 10:52:13 +0000 (11:52 +0100)] 
typo

9 years agofix query string
Michael Wallner [Mon, 19 Jan 2015 09:13:07 +0000 (10:13 +0100)] 
fix query string

9 years agofixup php_http_params
Michael Wallner [Sun, 18 Jan 2015 16:48:09 +0000 (17:48 +0100)] 
fixup php_http_params

9 years agofix typo
Michael Wallner [Sun, 18 Jan 2015 10:48:18 +0000 (11:48 +0100)] 
fix typo

9 years agofix headers to string generation
Michael Wallner [Sun, 18 Jan 2015 10:46:11 +0000 (11:46 +0100)] 
fix headers to string generation

9 years agofix missing object offset for msg body
Michael Wallner [Sun, 18 Jan 2015 09:43:55 +0000 (10:43 +0100)] 
fix missing object offset for msg body

9 years agozend_hash_get_current_key_ex does not accept NULL for position anymore
Michael Wallner [Sun, 18 Jan 2015 09:38:11 +0000 (10:38 +0100)] 
zend_hash_get_current_key_ex does not accept NULL for position anymore

9 years agofix leaks / invalid frees
Michael Wallner [Sun, 18 Jan 2015 09:37:27 +0000 (10:37 +0100)] 
fix leaks / invalid frees

9 years agofix update of url properties, fix createing zend_strings from non-allocated strings...
Michael Wallner [Sun, 18 Jan 2015 09:35:03 +0000 (10:35 +0100)] 
fix update of url properties, fix createing zend_strings from non-allocated strings; rm TSRMLS_CC

9 years agofix leak and invalid dtor
Michael Wallner [Sun, 18 Jan 2015 09:33:42 +0000 (10:33 +0100)] 
fix leak and invalid dtor

9 years agouse correct object handler to free the object
Michael Wallner [Fri, 16 Jan 2015 16:09:29 +0000 (17:09 +0100)] 
use correct object handler to free the object

9 years agoflush WIP
Michael Wallner [Fri, 16 Jan 2015 15:57:17 +0000 (16:57 +0100)] 
flush WIP

9 years agoflush WIP
Michael Wallner [Thu, 15 Jan 2015 15:11:40 +0000 (16:11 +0100)] 
flush WIP

9 years agoflush WIP
Michael Wallner [Thu, 15 Jan 2015 09:01:52 +0000 (10:01 +0100)] 
flush WIP

9 years agoflush WIP
Michael Wallner [Wed, 14 Jan 2015 20:53:09 +0000 (21:53 +0100)] 
flush WIP

10 years agoback to dev
Michael Wallner [Wed, 12 Nov 2014 13:45:15 +0000 (14:45 +0100)] 
back to dev

10 years agoprepare 2.2.0RC1 RELEASE_2_2_0_RC1
Michael Wallner [Wed, 12 Nov 2014 13:42:47 +0000 (14:42 +0100)] 
prepare 2.2.0RC1

10 years agoupdate test
Michael Wallner [Wed, 12 Nov 2014 08:47:52 +0000 (09:47 +0100)] 
update test

10 years agoadd http\Env\Request::getCookie()
Michael Wallner [Wed, 12 Nov 2014 08:45:07 +0000 (09:45 +0100)] 
add http\Env\Request::getCookie()

10 years agofix title
Michael Wallner [Wed, 12 Nov 2014 08:44:59 +0000 (09:44 +0100)] 
fix title

10 years ago--url
Michael Wallner [Wed, 12 Nov 2014 07:52:08 +0000 (08:52 +0100)] 
--url

10 years agoadd http\Env\Response::setCookie()
Michael Wallner [Tue, 11 Nov 2014 19:24:19 +0000 (20:24 +0100)] 
add http\Env\Response::setCookie()

10 years agodon't abuse STR_FREE; ditch http\Url::parse(); fix tests
Michael Wallner [Fri, 7 Nov 2014 19:37:07 +0000 (20:37 +0100)] 
don't abuse STR_FREE; ditch http\Url::parse(); fix tests

10 years agoditch php_url
Michael Wallner [Fri, 7 Nov 2014 12:16:16 +0000 (13:16 +0100)] 
ditch php_url

10 years agotypo
Remi Collet [Fri, 7 Nov 2014 06:58:12 +0000 (07:58 +0100)] 
typo

10 years agoMerge branch 'master' of git.php.net:/pecl/http/pecl_http
Remi Collet [Fri, 7 Nov 2014 06:55:46 +0000 (07:55 +0100)] 
Merge branch 'master' of git.php.net:/pecl/http/pecl_http

* 'master' of git.php.net:/pecl/http/pecl_http: (31 commits)
  use our url parser
  back to dev
  prepare 2.1.4
  Fixed bug #66891 (Unexpected HTTP 401 after NTLM authentication)
  Fixed bug #68149 (duplicate content-length with libcurl < 7.23)
  Fixed bug #68353 (QsoSSL support removed in libcurl 7.39)
  fix long/int mismatch
  update missing tests
  test ::PARSE_TOPCT
  strip comments
  prepare for using all constants together
  simplify
  separate url and parser state
  fix edge cases with @
  brain wrecked
  more explicit constant names
  path should be forgotten
  fix query&fragment; add pctenc parser option
  simplify
  update
  ...

10 years agouse our url parser
Michael Wallner [Thu, 6 Nov 2014 22:51:02 +0000 (23:51 +0100)] 
use our url parser

10 years agoMerge branch 'R_2_1'
Michael Wallner [Thu, 6 Nov 2014 17:48:27 +0000 (18:48 +0100)] 
Merge branch 'R_2_1'

10 years agoback to dev v2.1.x
Michael Wallner [Thu, 6 Nov 2014 17:47:08 +0000 (18:47 +0100)] 
back to dev

10 years agoprepare 2.1.4 RELEASE_2_1_4
Michael Wallner [Thu, 6 Nov 2014 17:45:57 +0000 (18:45 +0100)] 
prepare 2.1.4

10 years agoMerge branch 'R_2_1'
Michael Wallner [Thu, 6 Nov 2014 15:23:38 +0000 (16:23 +0100)] 
Merge branch 'R_2_1'

10 years agoFixed bug #66891 (Unexpected HTTP 401 after NTLM authentication)
Michael Wallner [Thu, 6 Nov 2014 15:22:18 +0000 (16:22 +0100)] 
Fixed bug #66891 (Unexpected HTTP 401 after NTLM authentication)

If you set a "WWW-Authenticate" header PHP automatically issues a 401.

http\Env\Response slurps any set headers and re-sends it after sending
the status code, so that PHP might be resetting the status code to 401
because it sees again an WWW-Authenticate header.

Send the status code after any headers to avoid this issue.

10 years agoMerge branch 'R_2_1'
Michael Wallner [Thu, 6 Nov 2014 12:07:15 +0000 (13:07 +0100)] 
Merge branch 'R_2_1'

10 years agoFixed bug #68149 (duplicate content-length with libcurl < 7.23)
Michael Wallner [Thu, 6 Nov 2014 12:06:45 +0000 (13:06 +0100)] 
Fixed bug #68149 (duplicate content-length with libcurl < 7.23)

10 years agoMerge branch 'R_2_1'
Michael Wallner [Thu, 6 Nov 2014 10:13:32 +0000 (11:13 +0100)] 
Merge branch 'R_2_1'

10 years agoFixed bug #68353 (QsoSSL support removed in libcurl 7.39)
Michael Wallner [Thu, 6 Nov 2014 10:13:04 +0000 (11:13 +0100)] 
Fixed bug #68353 (QsoSSL support removed in libcurl 7.39)

10 years agoMerge branch 'R_2_1'
Michael Wallner [Thu, 6 Nov 2014 08:15:32 +0000 (09:15 +0100)] 
Merge branch 'R_2_1'

10 years agofix long/int mismatch
Michael Wallner [Sun, 2 Nov 2014 20:02:31 +0000 (21:02 +0100)] 
fix long/int mismatch

10 years agoupdate missing tests
Michael Wallner [Wed, 5 Nov 2014 14:43:29 +0000 (15:43 +0100)] 
update missing tests

10 years agotest ::PARSE_TOPCT
Michael Wallner [Wed, 5 Nov 2014 14:32:00 +0000 (15:32 +0100)] 
test ::PARSE_TOPCT

10 years agostrip comments
Michael Wallner [Wed, 5 Nov 2014 13:37:35 +0000 (14:37 +0100)] 
strip comments

10 years agoprepare for using all constants together
Michael Wallner [Tue, 4 Nov 2014 19:15:20 +0000 (20:15 +0100)] 
prepare for using all constants together

10 years agosimplify
Michael Wallner [Tue, 4 Nov 2014 19:15:02 +0000 (20:15 +0100)] 
simplify

10 years agoseparate url and parser state
Michael Wallner [Sun, 2 Nov 2014 17:21:26 +0000 (18:21 +0100)] 
separate url and parser state

10 years agofix edge cases with @
Michael Wallner [Fri, 31 Oct 2014 14:03:11 +0000 (15:03 +0100)] 
fix edge cases with @

10 years agobrain wrecked
Michael Wallner [Thu, 30 Oct 2014 17:54:02 +0000 (18:54 +0100)] 
brain wrecked