Query: http_parse_message
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
HTTP_PARSE_MESSAGE(3) 1 HTTP_PARSE_MESSAGE(3) http_parse_message - Parse HTTP messagesSYNOPSISobject http_parse_message (string $message)DESCRIPTIONParses the HTTP $message into a simple recursive object.PARAMETERSo $message - string containing a single HTTP message or several consecutive HTTP messagesRETURN VALUESReturns a hierarchical object structure of the parsed messages.EXAMPLESExample #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 ALSOhttp_parse_headers(3), the HttpMessage class. PHP Documentation Group HTTP_PARSE_MESSAGE(3)
Related Man Pages |
---|
http::message(3) - redhat |
http_parse_message(3) - php |
apache_response_headers(3) - php |
http_parse_params(3) - php |
http_persistent_handles_count(3) - php |
Similar Topics in the Unix Linux Community |
---|
http error code |
HTTP extension for PHP 1.6.1 (Default branch) |
HTTP extension for PHP 1.6.3 (Default branch) |
why output consists of 3 values |
SQL Injection Detection |