test61 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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
  9. Set-Cookie: test=yes; domain=foo.com; expires=Tue Feb 1 11:56:27 MET 2007
  10. Set-Cookie: test2=yes; domain=host.foo.com; expires=Tue Feb 1 11:56:27 MET 2007
  11. Set-Cookie: test3=maybe; domain=foo.com; path=/moo; secure
  12. Set-Cookie: test4=no; domain=nope.foo.com; path=/moo; secure
  13. Set-Cookie: test5=name; domain=anything.com; path=/ ; secure
  14. Content-Length: 4
  15. boo
  16. </data>
  17. </reply>
  18. # Client-side
  19. <client>
  20. <server>
  21. http
  22. </server>
  23. <name>
  24. HTTP with various cookies and custom Host:
  25. </name>
  26. <command>
  27. http://%HOSTIP:%HOSTPORT/we/want/61 -c log/jar61.txt -H "Host: www.host.foo.com"
  28. </command>
  29. </client>
  30. # Verify data after the test has been "shot"
  31. <verify>
  32. <strip>
  33. ^User-Agent:.*
  34. </strip>
  35. <protocol>
  36. GET /we/want/61 HTTP/1.1
  37. Pragma: no-cache
  38. Accept: */*
  39. Host: www.host.foo.com
  40. </protocol>
  41. <file name="log/jar61.txt">
  42. # Netscape HTTP Cookie File
  43. # http://www.netscape.com/newsref/std/cookie_spec.html
  44. # This file was generated by libcurl! Edit at your own risk.
  45. .foo.com TRUE /we/want/ FALSE 1170327387 test yes
  46. .host.foo.com TRUE /we/want/ FALSE 1170327387 test2 yes
  47. .foo.com TRUE /moo TRUE 0 test3 maybe
  48. </file>
  49. </verify>