test1136 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. </features>
  35. <server>
  36. http
  37. </server>
  38. <name>
  39. Check cookies against PSL
  40. </name>
  41. <setenv>
  42. TZ=GMT
  43. </setenv>
  44. <command>
  45. http://www.example.ck/%TESTNUMBER http://www.ck/%TESTNUMBER http://z-1.compute-1.amazonaws.com/%TESTNUMBER -b none -c log/jar%TESTNUMBER.txt -x %HOSTIP:%HTTPPORT
  46. </command>
  47. </client>
  48. # Verify data after the test has been "shot"
  49. <verify>
  50. <file name="log/jar%TESTNUMBER.txt" mode="text">
  51. # Netscape HTTP Cookie File
  52. # https://curl.se/docs/http-cookies.html
  53. # This file was generated by libcurl! Edit at your own risk.
  54. .z-1.compute-1.amazonaws.com TRUE / FALSE 0 test5 forbidden5
  55. .www.ck TRUE / FALSE 0 test4 allowed4
  56. .www.example.ck TRUE / FALSE 0 test2 allowed2
  57. </file>
  58. </verify>
  59. </testcase>