test171 991 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. cookies
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 200 OK
  13. Date: Tue, 25 Sep 2001 19:37:44 GMT
  14. Content-Type: text/html
  15. Set-Cookie: XToken=xt;Domain=.z.x.com;Path=/
  16. Cache-control: private
  17. Content-Length: 62
  18. This server reply is for testing a simple cookie test case...
  19. </data>
  20. </reply>
  21. # Client-side
  22. <client>
  23. <server>
  24. http
  25. </server>
  26. <name>
  27. HTTP, get cookie with dot prefixed full domain
  28. </name>
  29. <command>
  30. -c log/jar171 -x %HOSTIP:%HTTPPORT http://z.x.com/171
  31. </command>
  32. </client>
  33. # Verify data after the test has been "shot"
  34. <verify>
  35. <strip>
  36. ^User-Agent:.*
  37. </strip>
  38. <protocol>
  39. GET http://z.x.com/171 HTTP/1.1
  40. Host: z.x.com
  41. Pragma: no-cache
  42. Accept: */*
  43. Proxy-Connection: Keep-Alive
  44. </protocol>
  45. <file name="log/jar171" mode="text">
  46. # Netscape HTTP Cookie File
  47. # http://curl.haxx.se/rfc/cookie_spec.html
  48. # This file was generated by libcurl! Edit at your own risk.
  49. .z.x.com TRUE / FALSE 0 XToken xt
  50. </file>
  51. </verify>
  52. </testcase>