initial commit
[m6w6/m6w6.github.io] / _posts / 2005-08-26-pecl-http-lap-12.md
1 ---
2 title: PECL HTTP, lap 12
3 author: m6w6
4 tags:
5 - PHP
6 ---
7
8 Today I released [PECLs HTTP extension version 0.12](http://pecl.php.net/package/pecl_http/0.12.0)
9
10 A lot of work and fixes have gone into it, and I hope it's becoming stable
11 even this century ;)
12
13 Major changes are a general API cleanup where AuthBasic hooks have been
14 removed and many HttpRequest methods have been sanitized.
15
16 The HttpResponse class should now work with PHP5 as a webserver module as well
17 and should not any longer have hard dependencies on ext/session and ext/zlib.
18
19 Additionally, if you have libmhash (note: not necessarily ext/mhash) you can
20 choose a hashing algorithm provided by libmhash to generate your ETags, which
21 is done through the following INI setting: http.etag_mode = MHASH_SHA256
22 (MHASH_SHA256 is an example and can be replaced by any MHASH constant **if**
23 you have ext/mhash).
24
25 The message and header parsers have been vastly improved to be able to parse
26 (in principle invalid) messages and headers that only have a single LF instead
27 of CRLF.
28
29 And last but not least it should again flawlessly build for PHP4.
30
31 So far, have fun and be sure to check it out! :)
32