HTTP extension for PHP 1.6.1 (Default branch)


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Software Releases - RSS News HTTP extension for PHP 1.6.1 (Default branch)
# 1  
Old 07-23-2008
HTTP extension for PHP 1.6.1 (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:
A bug concerning building with PHP-5.3 was fixed. A bug in which st->errorbuffer was not cleared between uses of persistent handles was fixed. A bug in which properties of a class extending HttpMessage were inaccessible was fixed.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)