test171 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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/jar%TESTNUMBER -x %HOSTIP:%HTTPPORT http://z.x.com/%TESTNUMBER
  32. </command>
  33. <features>
  34. proxy
  35. </features>
  36. </client>
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <protocol>
  40. GET http://z.x.com/%TESTNUMBER HTTP/1.1
  41. Host: z.x.com
  42. User-Agent: curl/%VERSION
  43. Accept: */*
  44. Proxy-Connection: Keep-Alive
  45. </protocol>
  46. <file name="log/jar%TESTNUMBER" mode="text">
  47. # Netscape HTTP Cookie File
  48. # https://curl.se/docs/http-cookies.html
  49. # This file was generated by libcurl! Edit at your own risk.
  50. .z.x.com TRUE / FALSE 0 XToken xt
  51. </file>
  52. </verify>
  53. </testcase>