test62 1019 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. Content-Type: text/html
  7. boo
  8. </data>
  9. </reply>
  10. # Client-side
  11. <client>
  12. <server>
  13. http
  14. </server>
  15. <name>
  16. HTTP, send cookies when using custom Host:
  17. </name>
  18. <command>
  19. http://%HOSTIP:%HOSTPORT/we/want/62 -b log/jar62.txt -H "Host: www.host.foo.com"
  20. </command>
  21. <file name="log/jar62.txt">
  22. # Netscape HTTP Cookie File
  23. # http://www.netscape.com/newsref/std/cookie_spec.html
  24. # This file was generated by libcurl! Edit at your own risk.
  25. .foo.com TRUE /we/want/ FALSE 1170327387 test yes
  26. .host.foo.com TRUE /we/want/ FALSE 1170327387 test2 yes
  27. .fake.host.foo.com TRUE /we/want/ FALSE 1170327387 test4 yes
  28. .foo.com TRUE /moo TRUE 0 test3 maybe
  29. </file>
  30. </client>
  31. # Verify data after the test has been "shot"
  32. <verify>
  33. <strip>
  34. ^User-Agent:.*
  35. </strip>
  36. <protocol>
  37. GET /we/want/62 HTTP/1.1
  38. Pragma: no-cache
  39. Accept: */*
  40. Cookie: test2=yes; test=yes
  41. Host: www.host.foo.com
  42. </protocol>
  43. </verify>