test1228 998 B

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