test1136 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP proxy
  7. cookies
  8. cookiejar
  9. PSL
  10. </keywords>
  11. </info>
  12. # Server-side
  13. <reply>
  14. <data>
  15. HTTP/1.1 200 OK
  16. Date: Tue, 09 Nov 2010 14:49:00 GMT
  17. Server: test-server/fake
  18. Content-Length: 4
  19. Content-Type: text/html
  20. Funny-head: yesyes
  21. Set-Cookie: test1=forbidden1; domain=example.ck; path=/;
  22. Set-Cookie: test2=allowed2; domain=www.example.ck; path=/;
  23. Set-Cookie: test3=forbidden3; domain=ck; path=/;
  24. Set-Cookie: test4=allowed4; domain=www.ck; path=/;
  25. Set-Cookie: test5=forbidden5; domain=z-1.compute-1.amazonaws.com; path=/;
  26. boo
  27. </data>
  28. </reply>
  29. # Client-side
  30. <client>
  31. <features>
  32. PSL
  33. proxy
  34. cookies
  35. </features>
  36. <server>
  37. http
  38. </server>
  39. <name>
  40. Check cookies against PSL
  41. </name>
  42. <setenv>
  43. TZ=GMT
  44. </setenv>
  45. <command>
  46. http://www.example.ck/%TESTNUMBER http://www.ck/%TESTNUMBER http://z-1.compute-1.amazonaws.com/%TESTNUMBER -b none -c %LOGDIR/jar%TESTNUMBER.txt -x %HOSTIP:%HTTPPORT
  47. </command>
  48. </client>
  49. # Verify data after the test has been "shot"
  50. <verify>
  51. <file name="%LOGDIR/jar%TESTNUMBER.txt" mode="text">
  52. # Netscape HTTP Cookie File
  53. # https://curl.se/docs/http-cookies.html
  54. # This file was generated by libcurl! Edit at your own risk.
  55. .z-1.compute-1.amazonaws.com TRUE / FALSE 0 test5 forbidden5
  56. .www.ck TRUE / FALSE 0 test4 allowed4
  57. .www.example.ck TRUE / FALSE 0 test2 allowed2
  58. </file>
  59. </verify>
  60. </testcase>