curl-library
Re: any libcurl API to delete expired cookies?
Date: Tue, 17 Sep 2013 16:02:18 +0900
Hi Daniel,
2013/9/13 Daniel Stenberg <daniel_at_haxx.se>
> On Fri, 28 Jun 2013, YAMADA Yasuharu wrote:
>
> I think the feature of removing expired cookies should be separate from
>>> the one that limits the total amount of cookies. I'm convinced there are
>>> people who might want that expiring feature without the max limit set.
>>>
>>
>> I quarry expired cookies patch from my "[new feature] Maximum limitation
>> of cookies" patch. Please check.
>>
>
> Hello again Yamada,
>
> I found this old patch by accident lingering around and I thought I'd take
> a look and see if we can merge this. I can't apply it since both git and
> patch says the patch file is illegally formatted.
>
> Could you please give it a quick check and if possible submit a fixed
> version that I can try out?
I create patch again which branch is branched from curl git master today.
Please check it.
https://github.com/aYasuharuYamada/curl/commit/b30ce0b990e52ea4b447cfbfbb21e77b5c399200
In this, test number 9001 is just dummy.
And I do curl tests related cookie and all tests are ok.
$ ./runtests.pl 6 7 8 27 31 46 53 61 62 73 171 172 179 506 598 1024 1025
1104 1105 1216 1218 1228 1331 1401 1408 9001
********* System characteristics ********
* curl 7.33.0-DEV (i686-pc-cygwin)
* libcurl/7.33.0-DEV OpenSSL/1.0.1e zlib/1.2.8 libidn/1.26
* Features: IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP
* Host: nordica
* System: CYGWIN_NT-6.1-WOW64 nordica 1.7.22(0.268/5/3) 2013-07-22 17:06
i686 Cygwin
* Server SSL: OFF libcurl SSL: ON
* debug build: OFF track memory: OFF
* valgrind: OFF HTTP IPv6 ON
* FTP IPv6 ON Libtool lib: OFF
* Shared build: yes
* SSL library: OpenSSL
* Ports:
* HTTP/8990 FTP/8992 FTP2/8995 RTSP/9007
* TFTP/8997 HTTP-IPv6/8994 RTSP-IPv6/9008 FTP-IPv6/8996
* GOPHER/9009 GOPHER-IPv6/9009
* SSH/8999 SOCKS/9000 POP3/9001 IMAP/9003 SMTP/9005
* POP3-IPv6/9002 IMAP-IPv6/9004 SMTP-IPv6/9006
* HTTPTLS/9011 HTTPTLS-IPv6/9012
* HTTP-PIPE/9014
*****************************************
test 006...[HTTP with simple cookie send]
-d-p--e--- OK (1 out of 25 , remaining: 00:52)
test 007...[HTTP with cookie parser and header recording]
-d-p-oe--- OK (2 out of 25 , remaining: 00:26)
test 008...[HTTP with cookie parsing from header file]
-d-p--e--- OK (3 out of 25 , remaining: 00:17)
test 027...[Get same cookie page several times]
-d-p--e--- OK (4 out of 25 , remaining: 00:14)
test 031...[HTTP with weirdly formatted cookies and cookiejar storage]
-d-p-oe--- OK (5 out of 25 , remaining: 00:11)
test 046...[HTTP, get cookies and store in cookie jar]
-d-p-oe--- OK (6 out of 25 , remaining: 00:09)
test 053...[HTTP, junk session cookies]
-d-p--e--- OK (7 out of 25 , remaining: 00:07)
test 061...[HTTP with various cookies and custom Host:]
-d-p-oe--- OK (8 out of 25 , remaining: 00:06)
test 062...[HTTP, send cookies when using custom Host:]
-d-p--e--- OK (9 out of 25 , remaining: 00:05)
test 073...[HTTP, receive cookies when using custom Host:, domain using
only two dots]
-d-p-oe--- OK (10 out of 25 , remaining: 00:04)
test 171...[HTTP, get cookie with dot prefixed full domain]
-d-p-oe--- OK (11 out of 25 , remaining: 00:04)
test 172...[HTTP with cookies file and custom added cookie]
-d-p--e--- OK (12 out of 25 , remaining: 00:03)
test 179...[HTTP using proxy and cookies with path checks]
-d-p--e--- OK (13 out of 25 , remaining: 00:03)
test 506...[HTTP with shared cookie list (and dns cache)]
s----oe--- OK (14 out of 25 , remaining: 00:02)
test 598...[curl_easy_reset with referer and other strings set]
-d-p--e--- OK (15 out of 25 , remaining: 00:02)
test 1024...[HTTP Location: following with cookies]
-d-p--e--- OK (16 out of 25 , remaining: 00:02)
test 1025...[HTTP Location: following with command-line and server cookies]
-d-p--e--- OK (17 out of 25 , remaining: 00:01)
test 1104...[HTTP cookie expiry date at Jan 1 00:00:00 GMT 1970]
-d-p--e--- OK (18 out of 25 , remaining: 00:01)
test 1105...[HTTP with cookie parser and header recording]
-d-p-oe--- OK (19 out of 25 , remaining: 00:01)
test 1216...[HTTP cookie domains tailmatching the host name]
-d-p--e--- OK (20 out of 25 , remaining: 00:01)
test 1218...[HTTP cookies and domains with same prefix]
-d-p--e--- OK (21 out of 25 , remaining: 00:00)
test 1228...[HTTP cookie path match]
-d-p--e--- OK (22 out of 25 , remaining: 00:00)
test 1331...[HTTP --proxy-anyauth and 407 with cookies]
-d-p--e--- OK (23 out of 25 , remaining: 00:00)
test 1401...[--libcurl for GET with various options]
-d-p-oe--- OK (24 out of 25 , remaining: 00:00)
test 1408...[HTTP receive cookies over IPV6]
---p--e--- OK (25 out of 25 , remaining: 00:00)
Warning: test9001 not present in tests/data/Makefile.am
test 9001...[Delete expired cookies]
-d-p-oe--- OK (26 out of 26 , remaining: 00:00)
TESTDONE: 26 tests out of 26 reported OK: 100%
TESTDONE: 26 tests were considered during 7 seconds.
-- . ________________________________________ The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mailer and delete this message and its attachments, if any. Thank you for your cooperation. ________________________________________
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-09-17