test1258 808 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP replaced headers
  7. cookies
  8. httponly
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. <data>
  14. HTTP/1.0 200 OK swsclose
  15. Date: Thu, 09 Nov 2010 14:49:00 GMT
  16. Content-Type: text/html
  17. Set-Cookie: I-am=here; domain=localhost;
  18. boo
  19. </data>
  20. </reply>
  21. # Client-side
  22. <client>
  23. <server>
  24. http
  25. </server>
  26. <name>
  27. HTTP, use cookies with localhost
  28. </name>
  29. <command>
  30. http://%HOSTIP:%HTTPPORT/we/want/1258 http://%HOSTIP:%HTTPPORT/we/want?hoge=fuga -b non-existing -H "Host: localhost"
  31. </command>
  32. </client>
  33. # Verify data after the test has been "shot"
  34. <verify>
  35. <strip>
  36. ^User-Agent:.*
  37. </strip>
  38. <protocol>
  39. GET /we/want/1258 HTTP/1.1
  40. Host: localhost
  41. Accept: */*
  42. GET /we/want?hoge=fuga HTTP/1.1
  43. Host: localhost
  44. Accept: */*
  45. Cookie: I-am=here
  46. </protocol>
  47. </verify>
  48. </testcase>