test1415 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP proxy
  7. cookies
  8. cookiejar
  9. delete expired cookie
  10. </keywords>
  11. </info>
  12. # Server-side
  13. <reply>
  14. <data>
  15. HTTP/1.1 200 OK
  16. Date: Thu, 09 Nov 2010 14:49:00 GMT
  17. Server: test-server/fake
  18. Content-Length: 4
  19. Content-Type: text/html
  20. Funny-head: yesyes
  21. Set-Cookie: test1value=test1; domain=example.com; path=/;
  22. Set-Cookie: test2value=test2; expires=Friday, 01-Jan-2037 00:00:00 GMT; domain=example.com; path=/;
  23. Set-Cookie: test3value=test3; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
  24. Set-Cookie: test4value=test4; expires=Friday, 01-Jan-2037 00:00:00 GMT; domain=example.com; path=/;
  25. Set-Cookie: test5value=test5; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
  26. Set-Cookie: test6value=test6; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
  27. Set-Cookie: test7value=test7; expires=Friday, 01-Jan-2037 00:00:00 GMT; domain=example.com; path=/;
  28. Set-Cookie: test8value=test8; expires=Monday, 13-Jun-1988 03:04:55 GMT; domain=example.com; path=/;
  29. boo
  30. </data>
  31. </reply>
  32. # Client-side
  33. <client>
  34. <server>
  35. http
  36. </server>
  37. <name>
  38. Delete expired cookies
  39. </name>
  40. <setenv>
  41. TZ=GMT
  42. </setenv>
  43. <command>
  44. http://example.com/we/want/1415 -b none -c log/jar1415.txt -x %HOSTIP:%HTTPPORT
  45. </command>
  46. </client>
  47. # Verify data after the test has been "shot"
  48. <verify>
  49. <strip>
  50. ^User-Agent:.*
  51. </strip>
  52. <protocol>
  53. GET http://example.com/we/want/1415 HTTP/1.1
  54. Host: example.com
  55. Accept: */*
  56. Proxy-Connection: Keep-Alive
  57. </protocol>
  58. <file name="log/jar1415.txt" mode="text">
  59. # Netscape HTTP Cookie File
  60. # http://curl.haxx.se/docs/http-cookies.html
  61. # This file was generated by libcurl! Edit at your own risk.
  62. .example.com TRUE / FALSE 0 test1value test1
  63. .example.com TRUE / FALSE 2114380800 test2value test2
  64. .example.com TRUE / FALSE 2114380800 test4value test4
  65. .example.com TRUE / FALSE 2114380800 test7value test7
  66. </file>
  67. </verify>
  68. </testcase>