m6w6/ext-http
12 years agoadd json content type handler if ext/json is present
Michael Wallner [Wed, 9 May 2012 12:30:04 +0000 (12:30 +0000)] 
add json content type handler if ext/json is present

12 years agodon't sanitize URL path by default, and add http\Url::SANITIZE_PATH flag for that
Michael Wallner [Mon, 7 May 2012 10:46:12 +0000 (10:46 +0000)] 
don't sanitize URL path by default, and add http\Url::SANITIZE_PATH flag for that

12 years agoprepare 2.0.0alpha1 release
Michael Wallner [Fri, 13 Apr 2012 11:18:45 +0000 (11:18 +0000)] 
prepare 2.0.0alpha1 release

12 years agofix valgrind errors
Michael Wallner [Fri, 13 Apr 2012 11:17:03 +0000 (11:17 +0000)] 
fix valgrind errors

12 years agofix leak; fix compiler warning
Michael Wallner [Thu, 12 Apr 2012 14:56:58 +0000 (14:56 +0000)] 
fix leak; fix compiler warning

12 years agoadd http\Client\AbstractClient#request(string method, string url[, array headers...
Michael Wallner [Thu, 12 Apr 2012 14:10:25 +0000 (14:10 +0000)] 
add http\Client\AbstractClient#request(string method, string url[, array headers=null[, mixed body=null[, array options=null]]])

12 years agofiy a serialization issue; always add "arguments" key to params array; add tests
Michael Wallner [Thu, 12 Apr 2012 14:07:09 +0000 (14:07 +0000)] 
fiy a serialization issue; always add "arguments" key to params array; add tests

12 years agouse php_http_array_hashkey_string* where applicable
Michael Wallner [Thu, 5 Apr 2012 17:33:35 +0000 (17:33 +0000)] 
use php_http_array_hashkey_string* where applicable

12 years agofixed this parser bug; removed old code
Michael Wallner [Thu, 5 Apr 2012 08:33:45 +0000 (08:33 +0000)] 
fixed this parser bug; removed old code

12 years agofix serialization of http\Params; one test still fails though
Michael Wallner [Thu, 5 Apr 2012 07:55:58 +0000 (07:55 +0000)] 
fix serialization of http\Params; one test still fails though

12 years agofix bug #64111
Michael Wallner [Wed, 4 Apr 2012 10:08:01 +0000 (10:08 +0000)] 
fix bug #64111

enable the params parser to parse x-www-form-urlencoded (query string)

12 years agocode cleanup
Michael Wallner [Tue, 3 Apr 2012 10:00:01 +0000 (10:00 +0000)] 
code cleanup

12 years agomissing version number
Michael Wallner [Fri, 30 Mar 2012 13:21:37 +0000 (13:21 +0000)] 
missing version number

12 years agorelease dev10
Michael Wallner [Fri, 30 Mar 2012 13:21:08 +0000 (13:21 +0000)] 
release dev10

12 years agoreintegrate the DEV_2-client branch
Michael Wallner [Fri, 30 Mar 2012 12:27:02 +0000 (12:27 +0000)] 
reintegrate the DEV_2-client branch

12 years agoupdate filelist
Michael Wallner [Fri, 30 Mar 2012 12:20:46 +0000 (12:20 +0000)] 
update filelist

12 years agobatch renaming: client*curl curl*client
Michael Wallner [Fri, 30 Mar 2012 12:14:01 +0000 (12:14 +0000)] 
batch renaming: client*curl curl*client

12 years agolet the request be able to carry client options
Michael Wallner [Fri, 30 Mar 2012 11:54:57 +0000 (11:54 +0000)] 
let the request be able to carry client options

12 years agooperate directly on the querystring of the request url
Michael Wallner [Thu, 29 Mar 2012 15:56:18 +0000 (15:56 +0000)] 
operate directly on the querystring of the request url

12 years agomerge usort
Michael Wallner [Thu, 29 Mar 2012 09:56:07 +0000 (09:56 +0000)] 
merge usort

12 years agodon't crash if user extends abstract classes
Michael Wallner [Thu, 29 Mar 2012 08:22:46 +0000 (08:22 +0000)] 
don't crash if user extends abstract classes

12 years agofix crash: options might be null
Michael Wallner [Wed, 28 Mar 2012 08:14:27 +0000 (08:14 +0000)] 
fix crash: options might be null

12 years agore-enable the factory
Michael Wallner [Tue, 27 Mar 2012 10:55:44 +0000 (10:55 +0000)] 
re-enable the factory

12 years agomake the pool functional again
Michael Wallner [Tue, 27 Mar 2012 10:12:11 +0000 (10:12 +0000)] 
make the pool functional again

12 years agolet the ctor honor the options array too
Michael Wallner [Tue, 27 Mar 2012 07:56:29 +0000 (07:56 +0000)] 
let the ctor honor the options array too

12 years agono need for separate property
Michael Wallner [Tue, 27 Mar 2012 07:55:00 +0000 (07:55 +0000)] 
no need for separate property

12 years agofix errenous quotes
Michael Wallner [Tue, 27 Mar 2012 07:54:20 +0000 (07:54 +0000)] 
fix errenous quotes

12 years agofypo tix
Michael Wallner [Mon, 26 Mar 2012 18:44:24 +0000 (18:44 +0000)] 
fypo tix

12 years agomissed one file
Michael Wallner [Mon, 26 Mar 2012 17:01:32 +0000 (17:01 +0000)] 
missed one file

12 years agoadd current state of refactoring
Michael Wallner [Mon, 26 Mar 2012 17:00:58 +0000 (17:00 +0000)] 
add current state of refactoring

12 years agocommit lingering changes: http\Message::toStream() and ::toCallback()
Michael Wallner [Mon, 26 Mar 2012 15:49:02 +0000 (15:49 +0000)] 
commit lingering changes: http\Message::toStream() and ::toCallback()

12 years agodevel branch for the proposed client API
Michael Wallner [Mon, 26 Mar 2012 08:08:39 +0000 (08:08 +0000)] 
devel branch for the proposed client API

12 years agoadd missing tests
Michael Wallner [Mon, 26 Mar 2012 07:58:56 +0000 (07:58 +0000)] 
add missing tests

12 years agoadd population of _POST and _FILES for non-POST requests; release 2.0.0dev9
Michael Wallner [Fri, 23 Mar 2012 13:43:02 +0000 (13:43 +0000)] 
add population of _POST and _FILES for non-POST requests; release 2.0.0dev9

12 years agoupdate curl info
Michael Wallner [Fri, 23 Mar 2012 09:46:16 +0000 (09:46 +0000)] 
update curl info

12 years agoremove php_http_request_method.[ch]; add support for CURL_LOCK_DATA_SSL_SESSION,...
Michael Wallner [Thu, 22 Mar 2012 17:34:36 +0000 (17:34 +0000)] 
remove php_http_request_method.[ch]; add support for CURL_LOCK_DATA_SSL_SESSION, CURLOPT_RESOLVE, CURLOPT_DNS_SERVERS

12 years agoremove 90% of the request method cruft; request methods are now simple strings
Michael Wallner [Thu, 22 Mar 2012 16:21:26 +0000 (16:21 +0000)] 
remove 90% of the request method cruft; request methods are now simple strings

12 years agoadd changelog and new tests
Michael Wallner [Tue, 20 Mar 2012 20:55:36 +0000 (20:55 +0000)] 
add changelog and new tests

12 years agoallow arguments at first level, i.e. the following examples are equally stringified...
Michael Wallner [Tue, 20 Mar 2012 20:55:07 +0000 (20:55 +0000)] 
allow arguments at first level, i.e. the following examples are equally stringified as "key;some=stuff"

["key"=>["value"=>true,"arguments"=>["some"=>"stuff"]]]
["key"=>["value"=>true,"some"=>"stuff"]]
["key"=>["some"=>"stuff"]]

12 years agoremove lots of unused code; tests++; speed up php_http_message_serialize() by reversi...
Michael Wallner [Tue, 20 Mar 2012 20:51:16 +0000 (20:51 +0000)] 
remove lots of unused code; tests++; speed up php_http_message_serialize() by reversing the message chain prior serialization; set an appropriate response status according to the response code

12 years agouse a http\Params like array as content disposition
Michael Wallner [Tue, 20 Mar 2012 20:48:03 +0000 (20:48 +0000)] 
use a http\Params like array as content disposition

12 years agofix package.xml
Michael Wallner [Tue, 20 Mar 2012 16:12:54 +0000 (16:12 +0000)] 
fix package.xml

12 years agokeep track of changes in package.xml
Michael Wallner [Sat, 17 Mar 2012 10:37:21 +0000 (10:37 +0000)] 
keep track of changes in package.xml

12 years agorename http\Env\Request::getPost() to getForm(), because it actually retrieves form...
Michael Wallner [Sat, 17 Mar 2012 10:36:22 +0000 (10:36 +0000)] 
rename http\Env\Request::getPost() to getForm(), because it actually retrieves form data; add tests to pacakge.xml as suggested by Remi Collet

12 years agorelease 2.0.0dev8
Michael Wallner [Fri, 16 Mar 2012 16:14:13 +0000 (16:14 +0000)] 
release 2.0.0dev8

12 years agoduh, test before commit!; remove errenous additional CRLF on php_http_message_to_stri...
Michael Wallner [Thu, 15 Mar 2012 15:29:27 +0000 (15:29 +0000)] 
duh, test before commit!; remove errenous additional CRLF on php_http_message_to_string(); fix some tests while at

12 years agorenamed http\Message\Body::add() to ::addForm() because it acually adds form-data...
Michael Wallner [Thu, 15 Mar 2012 15:06:43 +0000 (15:06 +0000)] 
renamed http\Message\Body::add() to ::addForm() because it acually adds form-data; add http\Message\Body::addPart(http\Message part)

12 years agomove the param string builder into it's own function
Michael Wallner [Thu, 15 Mar 2012 15:06:04 +0000 (15:06 +0000)] 
move the param string builder into it's own function

12 years agoadd some more tests; fix leak in php_http_env_get_response_header(); honor content...
Michael Wallner [Tue, 13 Mar 2012 22:02:13 +0000 (22:02 +0000)] 
add some more tests; fix leak in php_http_env_get_response_header(); honor content-type etc. headers in php_http_env_get_request_headers();

12 years agoadd ob handler http\Env\Response::__invoke() appending to it's body
Michael Wallner [Sun, 11 Mar 2012 19:39:04 +0000 (19:39 +0000)] 
add ob handler http\Env\Response::__invoke() appending to it's body

12 years agofix some compiler warnings
Michael Wallner [Sun, 11 Mar 2012 13:45:23 +0000 (13:45 +0000)] 
fix some compiler warnings

12 years agofix wrong assumption in php_http_env_is_response_cached_by_*
Michael Wallner [Sat, 10 Mar 2012 08:26:33 +0000 (08:26 +0000)] 
fix wrong assumption in php_http_env_is_response_cached_by_*
fix leak in *_last_modified

12 years agoadd php_http_buffer_account(buf, size_t account)
Michael Wallner [Sat, 10 Mar 2012 08:22:22 +0000 (08:22 +0000)] 
add php_http_buffer_account(buf, size_t account)

12 years agoless intrusive fix
Michael Wallner [Sat, 10 Mar 2012 06:55:21 +0000 (06:55 +0000)] 
less intrusive fix

12 years agoFix error: redefinition of typedef 'php_http_message_t' during RHEL build
Remi Collet [Fri, 9 Mar 2012 16:08:04 +0000 (16:08 +0000)] 
Fix error: redefinition of typedef 'php_http_message_t' during RHEL build

12 years agorelease 2.0.0dev7
Michael Wallner [Fri, 9 Mar 2012 14:59:13 +0000 (14:59 +0000)] 
release 2.0.0dev7

12 years agosanitized negotiation code
Michael Wallner [Thu, 8 Mar 2012 15:48:20 +0000 (15:48 +0000)] 
sanitized negotiation code

12 years agoadd simple (de)quote and (de)escape capabilities to http\Params
Michael Wallner [Thu, 8 Mar 2012 12:23:22 +0000 (12:23 +0000)] 
add simple (de)quote and (de)escape capabilities to http\Params

12 years agoadd bool http\Message::isMultipart([&$boundary]) and http\Message http\Message::split...
Michael Wallner [Wed, 7 Mar 2012 16:16:04 +0000 (16:16 +0000)] 
add bool http\Message::isMultipart([&$boundary]) and http\Message http\Message::splitMultipartBody()

12 years agofix tests; fix leaks in new http\Env\Request methods; release dev6
Michael Wallner [Thu, 1 Mar 2012 21:42:01 +0000 (21:42 +0000)] 
fix tests; fix leaks in new http\Env\Request methods; release dev6

12 years agoseparate http_env_request; add getQuer(), getPost(), getFiles()
Michael Wallner [Thu, 1 Mar 2012 13:31:58 +0000 (13:31 +0000)] 
separate http_env_request; add getQuer(), getPost(), getFiles()

12 years agomake syntactically valid
Michael Wallner [Thu, 1 Mar 2012 13:31:23 +0000 (13:31 +0000)] 
make syntactically valid

12 years agocache only standard GET/HEAD by default
Michael Wallner [Thu, 1 Mar 2012 13:31:00 +0000 (13:31 +0000)] 
cache only standard GET/HEAD by default

12 years agoallow parsing messages consiting of headers only; fetch content-type and content...
Michael Wallner [Wed, 29 Feb 2012 08:28:06 +0000 (08:28 +0000)] 
allow parsing messages consiting of headers only; fetch content-type and content-length headers from env

12 years agofix crahs with empty urls because of typo
Michael Wallner [Wed, 29 Feb 2012 08:26:11 +0000 (08:26 +0000)] 
fix crahs with empty urls because of typo

12 years agoexperimental stream message parser
Michael Wallner [Fri, 24 Feb 2012 14:29:59 +0000 (14:29 +0000)] 
experimental stream message parser

12 years agotests
Michael Wallner [Mon, 13 Feb 2012 13:31:13 +0000 (13:31 +0000)] 
tests

12 years agofix leak
Michael Wallner [Mon, 13 Feb 2012 13:30:50 +0000 (13:30 +0000)] 
fix leak

12 years agocatch NULLs
Michael Wallner [Mon, 13 Feb 2012 13:30:26 +0000 (13:30 +0000)] 
catch NULLs

12 years agofix crash due to mixed up params order
Michael Wallner [Mon, 13 Feb 2012 13:29:51 +0000 (13:29 +0000)] 
fix crash due to mixed up params order

12 years agofix etag handling
Michael Wallner [Mon, 13 Feb 2012 13:29:16 +0000 (13:29 +0000)] 
fix etag handling

12 years agofix type initialization and leaks; fix prepend
Michael Wallner [Mon, 13 Feb 2012 13:28:36 +0000 (13:28 +0000)] 
fix type initialization and leaks; fix prepend

12 years agofix curl crash on copy
Michael Wallner [Mon, 13 Feb 2012 13:27:46 +0000 (13:27 +0000)] 
fix curl crash on copy

12 years agofix cloning of http\Request; add refcount to resource factory
Michael Wallner [Mon, 13 Feb 2012 13:27:18 +0000 (13:27 +0000)] 
fix cloning of http\Request; add refcount to resource factory

12 years agopersistent handle fixes
Michael Wallner [Mon, 13 Feb 2012 13:26:22 +0000 (13:26 +0000)] 
persistent handle fixes

12 years agoremove that awkward and error prone global request datashare
Michael Wallner [Wed, 1 Feb 2012 09:23:26 +0000 (09:23 +0000)] 
remove that awkward and error prone global request datashare

12 years agoHTTP info test & fixes
Michael Wallner [Wed, 1 Feb 2012 09:21:21 +0000 (09:21 +0000)] 
HTTP info test & fixes

12 years agoquerystring test & fix
Michael Wallner [Wed, 25 Jan 2012 14:41:48 +0000 (14:41 +0000)] 
querystring test & fix

12 years agocookie test & fixes
Michael Wallner [Tue, 24 Jan 2012 16:34:18 +0000 (16:34 +0000)] 
cookie test & fixes

12 years agoreturn the actual zval instead of a string cast as header if join==0
Michael Wallner [Tue, 24 Jan 2012 16:33:49 +0000 (16:33 +0000)] 
return the actual zval instead of a string cast as header if join==0

12 years agomake sure we're not caught by uninitialized values
Michael Wallner [Tue, 24 Jan 2012 16:33:04 +0000 (16:33 +0000)] 
make sure we're not caught by uninitialized values

12 years agoetag test & fixes; set default etag mode for temp streams to crc32(b)
Michael Wallner [Mon, 23 Jan 2012 16:36:58 +0000 (16:36 +0000)] 
etag test & fixes; set default etag mode for temp streams to crc32(b)

12 years agonegotiation test & fixes
Michael Wallner [Mon, 23 Jan 2012 15:18:28 +0000 (15:18 +0000)] 
negotiation test & fixes

12 years agoencoding tests & fixes
Michael Wallner [Mon, 23 Jan 2012 14:14:10 +0000 (14:14 +0000)] 
encoding tests & fixes

12 years agoinitialize with NULL
Michael Wallner [Mon, 23 Jan 2012 14:13:33 +0000 (14:13 +0000)] 
initialize with NULL

12 years agomake place for real release notes; keep a major changes section in the description...
Michael Wallner [Mon, 23 Jan 2012 09:26:27 +0000 (09:26 +0000)] 
make place for real release notes; keep a major changes section in the description for now

12 years agofix bug #60839 php_http_serf.h missing; prepare dev4 release
Michael Wallner [Mon, 23 Jan 2012 09:06:37 +0000 (09:06 +0000)] 
fix bug #60839  php_http_serf.h missing; prepare dev4 release

12 years agofilter tests & fixes
Michael Wallner [Mon, 23 Jan 2012 09:05:46 +0000 (09:05 +0000)] 
filter tests & fixes

12 years agotests & bugfixes
Michael Wallner [Fri, 20 Jan 2012 22:02:26 +0000 (22:02 +0000)] 
tests & bugfixes

12 years agotests
Michael Wallner [Thu, 19 Jan 2012 15:45:55 +0000 (15:45 +0000)] 
tests

12 years agodoh
Michael Wallner [Thu, 19 Jan 2012 13:17:35 +0000 (13:17 +0000)] 
doh

12 years agoreading RFCs educates
Michael Wallner [Thu, 19 Jan 2012 12:08:24 +0000 (12:08 +0000)] 
reading RFCs educates

12 years agofixup http\Message\Body::add() for files where data isset
Michael Wallner [Thu, 19 Jan 2012 11:09:23 +0000 (11:09 +0000)] 
fixup http\Message\Body::add() for files where data isset

12 years agoremodel file adding to accept paths, streams and plain data as upload files
Michael Wallner [Thu, 19 Jan 2012 08:56:36 +0000 (08:56 +0000)] 
remodel file adding to accept paths, streams and plain data as upload files

12 years agoadd http\Url::mod(mixed $new_url[, int flags])
Michael Wallner [Thu, 19 Jan 2012 08:55:12 +0000 (08:55 +0000)] 
add http\Url::mod(mixed $new_url[, int flags])

12 years agobastardize property proxy even more -- sorry that dev3 had been released with debug...
Michael Wallner [Wed, 18 Jan 2012 17:04:54 +0000 (17:04 +0000)] 
bastardize property proxy even more -- sorry that dev3 had been released with debug output

12 years agorelease 2.0.0-dev3
Michael Wallner [Mon, 16 Jan 2012 15:21:25 +0000 (15:21 +0000)] 
release 2.0.0-dev3

12 years agofix arginfo
Michael Wallner [Mon, 16 Jan 2012 14:03:03 +0000 (14:03 +0000)] 
fix arginfo

12 years agofix leak
Michael Wallner [Mon, 16 Jan 2012 14:02:51 +0000 (14:02 +0000)] 
fix leak

12 years agofix http\message\Body::toCallback
Michael Wallner [Sat, 14 Jan 2012 13:59:56 +0000 (13:59 +0000)] 
fix http\message\Body::toCallback