test7 1.1 KB

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