From b3dd66ed1452139236b7101f7d73f19917bd1ea2 Mon Sep 17 00:00:00 2001
From: Michael Wallner
Date: Thu, 25 May 2006 08:47:21 +0000
Subject: [PATCH] - curl grabs longs, so pass longs to curl_easy_setopt() - add
possibility to reset session cookies only, patch to libcurl has been accepted
(7.15.4)
---
docs/functions.html | 8 +++-
http_request_api.c | 100 ++++++++++++++++++++++-------------------
http_request_object.c | 28 +++++++++---
php_http_request_api.h | 4 +-
4 files changed, 85 insertions(+), 55 deletions(-)
diff --git a/docs/functions.html b/docs/functions.html
index d1725a1..b27ed07 100644
--- a/docs/functions.html
+++ b/docs/functions.html
@@ -707,9 +707,13 @@ pairs to add.
bool HttpRequest::enableCookies()
Enable automatic sending of received cookies.
Note that cuutomly set cookies will be sent anyway.
-bool HttpRequest::resetCookies()
+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.
@@ -1430,7 +1434,7 @@ http.cache_log is set.
- Generated at: Mon, 22 May 2006 11:19:25 +0200
+ Generated at: Thu, 25 May 2006 10:46:03 +0200