X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Ffunctions.html;h=b27ed0799bae4709bf67515230a4092a77b61f5e;hb=dbc4ec02cd319000b5c8589910047cfe6d5738be;hp=7139f2a924e9d612ae200d32a9a2f7dcef53f867;hpb=24d2d35cd00eca44a97a6b11340c2790421216fa;p=m6w6%2Fext-http diff --git a/docs/functions.html b/docs/functions.html index 7139f2a..b27ed07 100644 --- a/docs/functions.html +++ b/docs/functions.html @@ -284,6 +284,8 @@ several consecutive HTTP messages.

<?php
print_r
(http_parse_cookie("foo=bar; bar=baz; path=/; domain=example.com; comment=; secure"0, array("comment")));

stdClass Object
(
    [
cookies] => Array
        (
            [
foo] => bar
            
[bar] => baz
        
)

    [
extras] => Array
        (
            [
comment] =>
        )

    [
flags] => 16
    
[expires] => 0
    
[path] => /
    [
domain] => example.com
)
?>

+

object http_parse_params(string param)

+

Parse parameter list.

array http_get_request_headers(void)

Get a list of incoming HTTP headers.

Returns an associative array of incoming request headers.

@@ -325,9 +327,8 @@ array where the following keys will be recognized:

 - redirect:
  - cookies:          array, list of cookies as associative array
like array("cookie" => "value")
- encodecookies: bool, whether to urlencode the cookies (default: true)
- - resetcookies: bool, wheter to reset the cookies
- cookiestore: string, path to a file where cookies are/will be stored
- - cookiesession: bool, accept (true) or reset (false) sessioncookies
+ - cookiesession: bool, don't load session cookies from cookiestore if TRUE
- resume: int, byte offset to start the download from;
if the server supports ranges
- range: array, array of arrays, each containing two integers,
@@ -703,6 +704,16 @@ pairs to add.

array HttpRequest::getCookies()

Get previously set cookies.

Returns an associative array containing any previously set cookies.

+

bool HttpRequest::enableCookies()

+

Enable automatic sending of received cookies.
+Note that cuutomly set cookies will be sent anyway.

+

bool HttpRequest::resetCookies([bool session_only = FALSE])

+

Reset all automatically received/sent cookies.
+Note that customly set cookies are not affected.

+

Accepts an optional bool parameter specifying
+whether only session cookies should be reset
+(needs libcurl >= v7.15.4, else libcurl >= v7.14.1).

+

Returns TRUE on success, or FALSE on failure.

bool HttpRequest::setUrl(string url)

Set the request URL.

Expects a string as parameter specifying the request url.

@@ -1191,6 +1202,8 @@ http.cache_log is set.

  • http_parse_cookie
  • +
  • http_parse_params +
  • http_get_request_headers
  • http_get_request_body @@ -1322,6 +1335,8 @@ http.cache_log is set.

  • HttpRequest::setCookies()
  • HttpRequest::addCookies()
  • HttpRequest::getCookies()
  • +
  • HttpRequest::enableCookies()
  • +
  • HttpRequest::resetCookies()
  • HttpRequest::setUrl()
  • HttpRequest::getUrl()
  • HttpRequest::setMethod()
  • @@ -1419,7 +1434,7 @@ http.cache_log is set.

    -

    Generated at: Sat, 22 Apr 2006 23:03:59 +0200

    +

    Generated at: Thu, 25 May 2006 10:46:03 +0200