test8 985 B

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