test1905 1009 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. cookies
  6. FLUSH
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data nocheck="yes">
  12. HTTP/1.1 200 OK
  13. Date: Tue, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Content-Type: text/html
  16. Funny-head: yesyes swsclose
  17. Set-Cookie: foobar=name;
  18. Set-Cookie: secondcookie=present;
  19. </data>
  20. </reply>
  21. # Client-side
  22. <client>
  23. <server>
  24. http
  25. </server>
  26. <name>
  27. CURLOPT_COOKIELIST set to "FLUSH" of a shared cookie object
  28. </name>
  29. <tool>
  30. lib%TESTNUMBER
  31. </tool>
  32. <command>
  33. http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER
  34. </command>
  35. </client>
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <protocol>
  39. GET /we/want/%TESTNUMBER HTTP/1.1
  40. Host: %HOSTIP:%HTTPPORT
  41. Accept: */*
  42. </protocol>
  43. <file name="log/cookies%TESTNUMBER" mode="text">
  44. # Netscape HTTP Cookie File
  45. # https://curl.se/docs/http-cookies.html
  46. # This file was generated by libcurl! Edit at your own risk.
  47. %HOSTIP FALSE /we/want/ FALSE 0 secondcookie present
  48. %HOSTIP FALSE /we/want/ FALSE 0 foobar name
  49. </file>
  50. </verify>
  51. </testcase>