test1136 1.3 KB

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