HTTP extension for PHP 1.6.2 (Default branch)


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Software Releases - RSS News HTTP extension for PHP 1.6.2 (Default branch)
# 1  
Old 12-05-2008
HTTP extension for PHP 1.6.2 (Default branch)

The HTTP extension for PHP aims to provide a convenient and powerful set of functionality for one of PHP's major applications. It eases handling of HTTP URLs, dates, redirects, headers, and messages, provides means for negotiation of clients' preferred language and charset, as well as a convenient way to send any arbitrary data with caching and resuming capabilities. It provides powerful request functionality if built with CURL support. Parallel requests are available for PHP 5 and greater. License: BSD License (revised) Changes:
This release fixes PHP 5.3 API incompatibilities (including bug #15065). It fixes memory corruption with headers and HttpRequest. It fixes a crash in HttpMessage::unserialize(). It fixes bug #14826 (a race condition in http_request_dtor) and bug #15223 (http_parse_message cuts off more than headers). Image

Image

More...
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question
HTTP_PARSE_MESSAGE(3)							 1						     HTTP_PARSE_MESSAGE(3)

http_parse_message - Parse HTTP messages

SYNOPSIS
object http_parse_message (string $message) DESCRIPTION
Parses the HTTP $message into a simple recursive object. PARAMETERS
o $message - string containing a single HTTP message or several consecutive HTTP messages RETURN VALUES
Returns a hierarchical object structure of the parsed messages. EXAMPLES
Example #1 Using http_parse_message(3) <?php define ('URL', 'http://www.example.com/'); print_r(http_parse_message(http_get(URL, array('redirect' => 3)))); ?> The above example will output something similar to: stdClass object ( [type] => 2 [httpVersion] => 1.1 [responseCode] => 200 [headers] => Array ( [Content-Length] => 3 [Server] => Apache ) [body] => Hi! [parentMessage] => stdClass object ( [type] => 2 [httpVersion] => 1.1 [responseCode] => 302 [headers] => Array ( [Content-Length] => 0 [Location] => ... ) [body] => [parentMessage] => ... ) ) SEE ALSO
http_parse_headers(3), the HttpMessage class. PHP Documentation Group HTTP_PARSE_MESSAGE(3)