test1228 918 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. cookies
  7. cookie path
  8. </keywords>
  9. </info>
  10. <reply>
  11. <data>
  12. HTTP/1.1 200 OK
  13. Date: Tue, 25 Sep 2001 19:37:44 GMT
  14. Set-Cookie: path1=root; domain=.example.fake; path=/;
  15. Set-Cookie: path2=depth1; domain=.example.fake; path=/hoge;
  16. Content-Length: 34
  17. This server says cookie path test
  18. </data>
  19. </reply>
  20. # Client-side
  21. <client>
  22. <server>
  23. http
  24. </server>
  25. <name>
  26. HTTP cookie path match
  27. </name>
  28. <command>
  29. http://example.fake/hoge/1228 http://example.fake/hogege/ -b nonexisting -x %HOSTIP:%HTTPPORT
  30. </command>
  31. </client>
  32. # Verify data after the test has been "shot"
  33. <verify>
  34. <strip>
  35. ^User-Agent:.*
  36. </strip>
  37. <protocol>
  38. GET http://example.fake/hoge/1228 HTTP/1.1
  39. Host: example.fake
  40. Accept: */*
  41. Proxy-Connection: Keep-Alive
  42. GET http://example.fake/hogege/ HTTP/1.1
  43. Host: example.fake
  44. Accept: */*
  45. Proxy-Connection: Keep-Alive
  46. Cookie: path1=root
  47. </protocol>
  48. </verify>
  49. </testcase>