downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

http_parse_params> <http_parse_headers
[edit] Last updated: Fri, 23 Mar 2012

view this page in

http_parse_message

(PECL pecl_http >= 0.12.0)

http_parse_messageHTTP iletilerini çözümler

Açıklama

object http_parse_message ( string $ileti )

HTTP iletisini basit bir ardışık nesne içine çözümler.

Değiştirgeler

ileti

Tek bir HTTP iletisini veya çeşitli ardışık HTTP iletilerini içeren bir dizge.

Dönen Değerler

Çözümlenen iletileri bir hiyerarşik nesne yapısında döndürür.

Örnekler

Örnek 1 - http_parse_message() kullanımı

<?php
define 
('URL''http://localhost/');
print_r(http_parse_message(http_get(URL, array('redirect' => 3))));
?>

Yukarıdaki örnek şuna benzer bir çıktı üretir:

stdClass Object
(
    [type] => 2
    [httpVersion] => 1.1
    [responseCode] => 200
    [responseStatus] => OK
    [headers] => Array
        (
            [Date] => Mon, 05 Jan 2009 15:29:40 GMT
            [Server] => Apache/2.2.9 (Debian) PHP/5.3.0alpha3-dev
            [Vary] => Accept-Encoding
            [Content-Length] => 1081
            [Content-Type] => text/html;charset=UTF-8
        )

    [body] =>...

    [parentMessage] =>
)

Ayrıca Bakınız



add a note add a note User Contributed Notes http_parse_message
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites