诸暨麻将添加redis
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

129 regels
5.1 KiB

  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. cookies
  7. cookiejar
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Thu, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Content-Length: 4
  17. Content-Type: text/html
  18. Funny-head: yesyes
  19. Set-Cookie: foobar=name; domain=anything.com; path=/ ; secure
  20. Set-Cookie:ismatch=this ; domain=127.0.0.1; path=/silly/
  21. Set-Cookie: overwrite=this ; domain=127.0.0.1; path=/overwrite/
  22. Set-Cookie: overwrite=this2 ; domain=127.0.0.1; path=/overwrite
  23. Set-Cookie: sec1value=secure1 ; domain=127.0.0.1; path=/secure1/ ; secure
  24. Set-Cookie: sec2value=secure2 ; domain=127.0.0.1; path=/secure2/ ; secure=
  25. Set-Cookie: sec3value=secure3 ; domain=127.0.0.1; path=/secure3/ ; secure=
  26. Set-Cookie: sec4value=secure4 ; secure=; domain=127.0.0.1; path=/secure4/ ;
  27. Set-Cookie: sec5value=secure5 ; secure; domain=127.0.0.1; path=/secure5/ ;
  28. Set-Cookie: sec6value=secure6 ; secure ; domain=127.0.0.1; path=/secure6/ ;
  29. Set-Cookie: sec7value=secure7 ; secure ; domain=127.0.0.1; path=/secure7/ ;
  30. Set-Cookie: sec8value=secure8 ; secure= ; domain=127.0.0.1; path=/secure8/ ;
  31. Set-Cookie: secure=very1 ; secure=; domain=127.0.0.1; path=/secure9/;
  32. Set-Cookie: httpo1=value1 ; domain=127.0.0.1; path=/p1/; httponly
  33. Set-Cookie: httpo2=value2 ; domain=127.0.0.1; path=/p2/; httponly=
  34. Set-Cookie: httpo3=value3 ; httponly; domain=127.0.0.1; path=/p3/;
  35. Set-Cookie: httpo4=value4 ; httponly=; domain=127.0.0.1; path=/p4/;
  36. Set-Cookie: httponly=myvalue1 ; domain=127.0.0.1; path=/p4/; httponly
  37. Set-Cookie: httpandsec=myvalue2 ; domain=127.0.0.1; path=/p4/; httponly; secure
  38. Set-Cookie: httpandsec2=myvalue3; domain=127.0.0.1; path=/p4/; httponly=; secure
  39. Set-Cookie: httpandsec3=myvalue4 ; domain=127.0.0.1; path=/p4/; httponly; secure=
  40. Set-Cookie: httpandsec4=myvalue5 ; domain=127.0.0.1; path=/p4/; httponly=; secure=
  41. Set-Cookie: httpandsec5=myvalue6 ; domain=127.0.0.1; path=/p4/; secure; httponly=
  42. Set-Cookie: httpandsec6=myvalue7 ; domain=127.0.0.1; path=/p4/; secure=; httponly=
  43. Set-Cookie: httpandsec7=myvalue8 ; domain=127.0.0.1; path=/p4/; secure; httponly
  44. Set-Cookie: httpandsec8=myvalue9; domain=127.0.0.1; path=/p4/; secure=; httponly
  45. Set-Cookie: partmatch=present; domain=127.0.0.1 ; path=/;
  46. Set-Cookie:eat=this; domain=moo.foo.moo;
  47. Set-Cookie: eat=this-too; domain=.foo.moo;
  48. Set-Cookie: nodomainnovalue
  49. Set-Cookie: nodomain=value; expires=Fri Feb 2 11:56:27 GMT 2035
  50. Set-Cookie: novalue; domain=reallysilly
  51. Set-Cookie: test=yes; domain=foo.com; expires=Sat Feb 2 11:56:27 GMT 2030
  52. Set-Cookie: test2=yes; domain=se; expires=Sat Feb 2 11:56:27 GMT 2030
  53. Set-Cookie: magic=yessir; path=/silly/; HttpOnly
  54. Set-Cookie: blexp=yesyes; domain=.0.0.1; domain=.0.0.1; expiry=totally bad;
  55. boo
  56. </data>
  57. </reply>
  58. # Client-side
  59. <client>
  60. <server>
  61. http
  62. </server>
  63. <name>
  64. HTTP with weirdly formatted cookies and cookiejar storage
  65. </name>
  66. # Explicitly set the time zone to a known good one, in case the user is
  67. # using one of the 'right' zones that take into account leap seconds
  68. # which causes the cookie expiry times to be different.
  69. <setenv>
  70. TZ=GMT
  71. </setenv>
  72. <command>
  73. http://%HOSTIP:%HTTPPORT/we/want/31 -b none -c log/jar31.txt
  74. </command>
  75. <precheck>
  76. perl -e 'if ("%HOSTIP" !~ /127\.0\.0\.1$/) {print "Test only works for HOSTIP 127.0.0.1"; exit(1)}'
  77. </precheck>
  78. </client>
  79. # Verify data after the test has been "shot"
  80. <verify>
  81. <strip>
  82. ^User-Agent:.*
  83. </strip>
  84. <protocol>
  85. GET /we/want/31 HTTP/1.1
  86. Host: %HOSTIP:%HTTPPORT
  87. Accept: */*
  88. </protocol>
  89. <file name="log/jar31.txt" mode="text">
  90. # Netscape HTTP Cookie File
  91. # http://curl.haxx.se/docs/http-cookies.html
  92. # This file was generated by libcurl! Edit at your own risk.
  93. .127.0.0.1 TRUE /silly/ FALSE 0 ismatch this
  94. .127.0.0.1 TRUE /overwrite FALSE 0 overwrite this2
  95. .127.0.0.1 TRUE /secure1/ TRUE 0 sec1value secure1
  96. .127.0.0.1 TRUE /secure2/ TRUE 0 sec2value secure2
  97. .127.0.0.1 TRUE /secure3/ TRUE 0 sec3value secure3
  98. .127.0.0.1 TRUE /secure4/ TRUE 0 sec4value secure4
  99. .127.0.0.1 TRUE /secure5/ TRUE 0 sec5value secure5
  100. .127.0.0.1 TRUE /secure6/ TRUE 0 sec6value secure6
  101. .127.0.0.1 TRUE /secure7/ TRUE 0 sec7value secure7
  102. .127.0.0.1 TRUE /secure8/ TRUE 0 sec8value secure8
  103. .127.0.0.1 TRUE /secure9/ TRUE 0 secure very1
  104. #HttpOnly_.127.0.0.1 TRUE /p1/ FALSE 0 httpo1 value1
  105. #HttpOnly_.127.0.0.1 TRUE /p2/ FALSE 0 httpo2 value2
  106. #HttpOnly_.127.0.0.1 TRUE /p3/ FALSE 0 httpo3 value3
  107. #HttpOnly_.127.0.0.1 TRUE /p4/ FALSE 0 httpo4 value4
  108. #HttpOnly_.127.0.0.1 TRUE /p4/ FALSE 0 httponly myvalue1
  109. #HttpOnly_.127.0.0.1 TRUE /p4/ TRUE 0 httpandsec myvalue2
  110. #HttpOnly_.127.0.0.1 TRUE /p4/ TRUE 0 httpandsec2 myvalue3
  111. #HttpOnly_.127.0.0.1 TRUE /p4/ TRUE 0 httpandsec3 myvalue4
  112. #HttpOnly_.127.0.0.1 TRUE /p4/ TRUE 0 httpandsec4 myvalue5
  113. #HttpOnly_.127.0.0.1 TRUE /p4/ TRUE 0 httpandsec5 myvalue6
  114. #HttpOnly_.127.0.0.1 TRUE /p4/ TRUE 0 httpandsec6 myvalue7
  115. #HttpOnly_.127.0.0.1 TRUE /p4/ TRUE 0 httpandsec7 myvalue8
  116. #HttpOnly_.127.0.0.1 TRUE /p4/ TRUE 0 httpandsec8 myvalue9
  117. .127.0.0.1 TRUE / FALSE 0 partmatch present
  118. 127.0.0.1 FALSE /we/want/ FALSE 2054030187 nodomain value
  119. #HttpOnly_127.0.0.1 FALSE /silly/ FALSE 0 magic yessir
  120. .0.0.1 TRUE /we/want/ FALSE 0 blexp yesyes
  121. </file>
  122. </verify>
  123. </testcase>