test7 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. cookies
  7. header dump
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Thu, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Content-Type: text/html
  17. Funny-head: yesyes swsclose
  18. Set-Cookie: foobar=name; domain=127.0.0.1; path=/;
  19. Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/";
  20. Set-Cookie: partmatch=present; domain=.0.0.1; path=/;
  21. </data>
  22. </reply>
  23. # Client-side
  24. <client>
  25. <server>
  26. http
  27. </server>
  28. <name>
  29. HTTP with cookie parser and header recording
  30. </name>
  31. <command>
  32. http://%HOSTIP:%HTTPPORT/we/want/7 -b none -D log/heads7.txt
  33. </command>
  34. </client>
  35. # Verify data after the test has been "shot"
  36. <verify>
  37. <strip>
  38. ^User-Agent:.*
  39. </strip>
  40. <protocol>
  41. GET /we/want/7 HTTP/1.1
  42. Host: %HOSTIP:%HTTPPORT
  43. Accept: */*
  44. </protocol>
  45. <file name="log/heads7.txt">
  46. HTTP/1.1 200 OK
  47. Date: Thu, 09 Nov 2010 14:49:00 GMT
  48. Server: test-server/fake
  49. Content-Type: text/html
  50. Funny-head: yesyes swsclose
  51. Set-Cookie: foobar=name; domain=127.0.0.1; path=/;
  52. Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/";
  53. Set-Cookie: partmatch=present; domain=.0.0.1; path=/;
  54. </file>
  55. </verify>
  56. </testcase>