test1415 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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: Tue, 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=Thursday, 31-Dec-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=Thursday, 31-Dec-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=Thursday, 31-Dec-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/%TESTNUMBER -b none -c log/jar%TESTNUMBER.txt -x %HOSTIP:%HTTPPORT
  45. </command>
  46. <features>
  47. proxy
  48. </features>
  49. </client>
  50. # Verify data after the test has been "shot"
  51. <verify>
  52. <protocol>
  53. GET http://example.com/we/want/%TESTNUMBER HTTP/1.1
  54. Host: example.com
  55. User-Agent: curl/%VERSION
  56. Accept: */*
  57. Proxy-Connection: Keep-Alive
  58. </protocol>
  59. <file name="log/jar%TESTNUMBER.txt" mode="text">
  60. # Netscape HTTP Cookie File
  61. # https://curl.se/docs/http-cookies.html
  62. # This file was generated by libcurl! Edit at your own risk.
  63. .example.com TRUE / FALSE 2145830400 test7value test7
  64. .example.com TRUE / FALSE 2145830400 test4value test4
  65. .example.com TRUE / FALSE 2145830400 test2value test2
  66. .example.com TRUE / FALSE 0 test1value test1
  67. </file>
  68. </verify>
  69. </testcase>