mirror of
https://github.com/curl/curl.git
synced 2026-04-13 00:31:41 +08:00
Because parts of the cookie loading happens on transfer start the in-memory cookie jar risks being incomplete and then a save might wrongly truncate the target file. Added test 1902 to verify. Reported-by: divinity76 on github Fixes #18621 Closes #18622
44 lines
775 B
Plaintext
44 lines
775 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
cookies
|
|
</keywords>
|
|
</info>
|
|
|
|
# Client-side
|
|
<client>
|
|
|
|
<name>
|
|
set COOKIEFILE and COOKIEJAR but make no transfer
|
|
</name>
|
|
<features>
|
|
cookies
|
|
</features>
|
|
<tool>
|
|
lib%TESTNUMBER
|
|
</tool>
|
|
|
|
<command>
|
|
%LOGDIR/cookie%TESTNUMBER
|
|
</command>
|
|
<file name="%LOGDIR/cookie%TESTNUMBER">
|
|
# Netscape HTTP Cookie File
|
|
# https://curl.se/docs/http-cookies.html
|
|
# This file was generated by libcurl! Edit at your own risk.
|
|
|
|
example.com FALSE / FALSE 0 has_js 1
|
|
</file>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<file name="%LOGDIR/cookie%TESTNUMBER">
|
|
# Netscape HTTP Cookie File
|
|
# https://curl.se/docs/http-cookies.html
|
|
# This file was generated by libcurl! Edit at your own risk.
|
|
|
|
example.com FALSE / FALSE 0 has_js 1
|
|
</file>
|
|
</verify>
|
|
</testcase>
|