cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [patch] tailmatch() returns true for invalid host.

From: YAMADA Yasuharu <yasuharu.yamada_at_access-company.com>
Date: Thu, 11 Apr 2013 10:21:21 +0900

2013/4/10 Daniel Stenberg <daniel_at_haxx.se>

> On Wed, 10 Apr 2013, YAMADA Yasuharu wrote:
>
> The point is the second flag of cookie data file. This flag is tail
>> match flag. I attach a patch for test1216. Please check it.
>>
>
> Right, that does show it... Can you think of a way to make a test case
> similar to 1216 but that makes the server send back cookies in the first
> response (instead of reading them from a cookie jar) that then are wrongly
> used in the second request?
>
>
I try to create at test case 1218 similar to 1216, but this is meaningless
because curl command does not use curl-share.
I mean... the expected sequence of attached test case is following:
(1) client sends 1st request to example.fake.
(2) server responses with cookie.
(3) client sends 2nd request to example.fake with cookie.
(4) server responses.
(5) client sends a request to bexample.fake without cookie.
(6) server responses.
In these sequence, it writes cookie jar file after (2) and reads cookie jar
file before (3).
So, (3) is the same as 1st request of test case 1216.

If curl command use curl-share instance during this test, the test that you
think about is feasible, I guess...

Best regards,
thanks
===============
YAMADA Yasuharu
ACCESS CO., LTD.
Yasuharu.Yamada_at_access-company.com

-- 
.
________________________________________
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

  • application/octet-stream attachment: test1218
Received on 2013-04-11