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

search for in the

HttpRequest::addHeaders> <The HttpRequest
[edit] Last updated: Sat, 07 Jan 2012

view this page in

HttpRequest::addCookies

(PECL pecl_http >= 0.10.0)

HttpRequest::addCookiesAdd cookies

설명

public bool HttpRequest::addCookies ( array $cookies )

Add custom cookies.

Note: 요청 옵션 encodecookies는 쿠키값이 urlencode()를 통할 지 여부를 제어합니다.

Note: 모든 요청 방식에 적용됩니다.

인수

cookies

an associative array containing any cookie name/value pairs to add

반환값

성공할 경우 TRUE를, 실패할 경우 FALSE를 반환합니다.

예제

Example #1 A HttpRequest::addCookies() example

<?php
$r 
= new HttpRequest;
$r->addCookies(
    array(
        
"cookie_name" => "cookie value",
    )
);
?>

참고



add a note add a note User Contributed Notes HttpRequest::addCookies - [0 notes]
There are no user contributed notes for this page.

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