test171 997 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP proxy
  7. cookies
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Tue, 25 Sep 2001 19:37:44 GMT
  15. Content-Type: text/html
  16. Set-Cookie: XToken=xt;Domain=.z.x.com;Path=/
  17. Cache-control: private
  18. Content-Length: 62
  19. This server reply is for testing a simple cookie test case...
  20. </data>
  21. </reply>
  22. # Client-side
  23. <client>
  24. <server>
  25. http
  26. </server>
  27. <name>
  28. HTTP, get cookie with dot prefixed full domain
  29. </name>
  30. <command>
  31. -c log/jar171 -x %HOSTIP:%HTTPPORT http://z.x.com/171
  32. </command>
  33. </client>
  34. # Verify data after the test has been "shot"
  35. <verify>
  36. <strip>
  37. ^User-Agent:.*
  38. </strip>
  39. <protocol>
  40. GET http://z.x.com/171 HTTP/1.1
  41. Host: z.x.com
  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>