test31 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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-Length: 4
  8. Content-Type: text/html
  9. Funny-head: yesyes
  10. Set-Cookie: foobar=name; domain=anything.com; path=/ ; secure
  11. Set-Cookie:ismatch=this ; domain=127.0.0.1; path=/silly/
  12. Set-Cookie: partmatch=present; domain=127.0.0.1 ; path=/;
  13. Set-Cookie:eat=this; domain=moo.foo.moo;
  14. Set-Cookie: eat=this-too; domain=.foo.moo;
  15. Set-Cookie: nodomainnovalue
  16. Set-Cookie: nodomain=value; expires=Tue Feb 1 11:56:27 MET 2014
  17. Set-Cookie: novalue; domain=reallysilly
  18. Set-Cookie: test=yes; domain=foo.com; expires=Tue Feb 1 11:56:27 MET 2007
  19. Set-Cookie: test2=yes; domain=se; expires=Tue Feb 1 11:56:27 MET 2007
  20. boo
  21. </data>
  22. </reply>
  23. # Client-side
  24. <client>
  25. <server>
  26. http
  27. </server>
  28. <name>
  29. HTTP with weirdly formatted cookies and cookiejar storage
  30. </name>
  31. <command>
  32. http://%HOSTIP:%HOSTPORT/we/want/31 -b none -c log/jar31.txt
  33. </command>
  34. </test>
  35. # Verify data after the test has been "shot"
  36. <verify>
  37. <strip>
  38. ^User-Agent:.*
  39. </strip>
  40. <protocol>
  41. GET /we/want/31 HTTP/1.1
  42. Host: 127.0.0.1:8999
  43. Pragma: no-cache
  44. Accept: */*
  45. </protocol>
  46. <file name="log/jar31.txt">
  47. # Netscape HTTP Cookie File
  48. # http://www.netscape.com/newsref/std/cookie_spec.html
  49. # This file was generated by libcurl! Edit at your own risk.
  50. .127.0.0.1 TRUE /silly/ FALSE 0 ismatch this
  51. .127.0.0.1 TRUE / FALSE 0 partmatch present
  52. 127.0.0.1 FALSE /we/want/ FALSE 1391252187 nodomain value
  53. </file>
  54. </verify>