test1161 857 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. cookies
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 200 OK
  13. Date: Thu, 09 Nov 2010 14:49:00 GMT
  14. Content-Length: 0
  15. Set-Cookie: ckyPersistent=permanent;path=;path=/
  16. </data>
  17. </reply>
  18. # Client-side
  19. <client>
  20. <server>
  21. http
  22. </server>
  23. <name>
  24. HTTP cookie with path set twice
  25. </name>
  26. <command>
  27. http://%HOSTIP:%HTTPPORT/1161 -c log/cookies1161.txt
  28. </command>
  29. </client>
  30. # Verify data after the test has been "shot"
  31. <verify>
  32. <strip>
  33. ^User-Agent:.*
  34. </strip>
  35. <protocol>
  36. GET /1161 HTTP/1.1
  37. Host: %HOSTIP:%HTTPPORT
  38. Accept: */*
  39. </protocol>
  40. <file name="log/cookies1161.txt" mode="text">
  41. # Netscape HTTP Cookie File
  42. # https://curl.haxx.se/docs/http-cookies.html
  43. # This file was generated by libcurl! Edit at your own risk.
  44. 127.0.0.1 FALSE / FALSE 0 ckyPersistent permanent
  45. </file>
  46. </verify>
  47. </testcase>