X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=http_functions.c;h=225019dc52f26924d85e94be508e59ab51d372ad;hb=424eec077256edbed079988cfa4dccab5b979536;hp=665facf7765ad01187cb0655975c0e95435b01fa;hpb=b637b6a7dc7e76df505a6f039994ed74c9f8ea1e;p=m6w6%2Fext-http diff --git a/http_functions.c b/http_functions.c index 665facf..225019d 100644 --- a/http_functions.c +++ b/http_functions.c @@ -702,8 +702,8 @@ PHP_FUNCTION(http_throttle) return; } - HTTP_G(send).throttle_delay = interval; - HTTP_G(send).buffer_size = chunk_size; + HTTP_G->send.throttle_delay = interval; + HTTP_G->send.buffer_size = chunk_size; } /* }}} */ @@ -1207,6 +1207,8 @@ PHP_FUNCTION(http_match_request_header) * like array("header" => "value") * - 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 * - resume: int, byte offset to start the download from; * if the server supports ranges