test444 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. # perl:
  2. #
  3. #for(1 .. 200) {
  4. #
  5. #}
  6. #
  7. <testcase>
  8. <info>
  9. <keywords>
  10. HTTP
  11. cookies
  12. --resolve
  13. </keywords>
  14. </info>
  15. #
  16. # Server-side
  17. <reply>
  18. <data>
  19. HTTP/1.1 200 OK
  20. Date: Tue, 09 Nov 2010 14:49:00 GMT
  21. Server: test-server/fake
  22. Content-Length: 6
  23. Set-Cookie: cookie-1=yes;
  24. Set-Cookie: cookie-2=yes;
  25. Set-Cookie: cookie-3=yes;
  26. Set-Cookie: cookie-4=yes;
  27. Set-Cookie: cookie-5=yes;
  28. Set-Cookie: cookie-6=yes;
  29. Set-Cookie: cookie-7=yes;
  30. Set-Cookie: cookie-8=yes;
  31. Set-Cookie: cookie-9=yes;
  32. Set-Cookie: cookie-10=yes;
  33. Set-Cookie: cookie-11=yes;
  34. Set-Cookie: cookie-12=yes;
  35. Set-Cookie: cookie-13=yes;
  36. Set-Cookie: cookie-14=yes;
  37. Set-Cookie: cookie-15=yes;
  38. Set-Cookie: cookie-16=yes;
  39. Set-Cookie: cookie-17=yes;
  40. Set-Cookie: cookie-18=yes;
  41. Set-Cookie: cookie-19=yes;
  42. Set-Cookie: cookie-20=yes;
  43. Set-Cookie: cookie-21=yes;
  44. Set-Cookie: cookie-22=yes;
  45. Set-Cookie: cookie-23=yes;
  46. Set-Cookie: cookie-24=yes;
  47. Set-Cookie: cookie-25=yes;
  48. Set-Cookie: cookie-26=yes;
  49. Set-Cookie: cookie-27=yes;
  50. Set-Cookie: cookie-28=yes;
  51. Set-Cookie: cookie-29=yes;
  52. Set-Cookie: cookie-30=yes;
  53. Set-Cookie: cookie-31=yes;
  54. Set-Cookie: cookie-32=yes;
  55. Set-Cookie: cookie-33=yes;
  56. Set-Cookie: cookie-34=yes;
  57. Set-Cookie: cookie-35=yes;
  58. Set-Cookie: cookie-36=yes;
  59. Set-Cookie: cookie-37=yes;
  60. Set-Cookie: cookie-38=yes;
  61. Set-Cookie: cookie-39=yes;
  62. Set-Cookie: cookie-40=yes;
  63. Set-Cookie: cookie-41=yes;
  64. Set-Cookie: cookie-42=yes;
  65. Set-Cookie: cookie-43=yes;
  66. Set-Cookie: cookie-44=yes;
  67. Set-Cookie: cookie-45=yes;
  68. Set-Cookie: cookie-46=yes;
  69. Set-Cookie: cookie-47=yes;
  70. Set-Cookie: cookie-48=yes;
  71. Set-Cookie: cookie-49=yes;
  72. Set-Cookie: cookie-50=yes;
  73. Set-Cookie: cookie-51=yes;
  74. Set-Cookie: cookie-52=yes;
  75. Set-Cookie: cookie-53=yes;
  76. Set-Cookie: cookie-54=yes;
  77. Set-Cookie: cookie-55=yes;
  78. Set-Cookie: cookie-56=yes;
  79. Set-Cookie: cookie-57=yes;
  80. Set-Cookie: cookie-58=yes;
  81. Set-Cookie: cookie-59=yes;
  82. Set-Cookie: cookie-60=yes;
  83. Set-Cookie: cookie-61=yes;
  84. Set-Cookie: cookie-62=yes;
  85. Set-Cookie: cookie-63=yes;
  86. Set-Cookie: cookie-64=yes;
  87. Set-Cookie: cookie-65=yes;
  88. Set-Cookie: cookie-66=yes;
  89. Set-Cookie: cookie-67=yes;
  90. Set-Cookie: cookie-68=yes;
  91. Set-Cookie: cookie-69=yes;
  92. Set-Cookie: cookie-70=yes;
  93. Set-Cookie: cookie-71=yes;
  94. Set-Cookie: cookie-72=yes;
  95. Set-Cookie: cookie-73=yes;
  96. Set-Cookie: cookie-74=yes;
  97. Set-Cookie: cookie-75=yes;
  98. Set-Cookie: cookie-76=yes;
  99. Set-Cookie: cookie-77=yes;
  100. Set-Cookie: cookie-78=yes;
  101. Set-Cookie: cookie-79=yes;
  102. Set-Cookie: cookie-80=yes;
  103. -foo-
  104. </data>
  105. </reply>
  106. #
  107. # Client-side
  108. <client>
  109. <server>
  110. http
  111. </server>
  112. <name>
  113. Many Set-Cookie response headers
  114. </name>
  115. <command>
  116. http://attack.invalid:%HTTPPORT/a/b/%TESTNUMBER -c log/cookie%TESTNUMBER --resolve attack.invalid:%HTTPPORT:%HOSTIP
  117. </command>
  118. </client>
  119. #
  120. # Verify data after the test has been "shot"
  121. <verify>
  122. <protocol>
  123. GET /a/b/%TESTNUMBER HTTP/1.1
  124. Host: attack.invalid:%HTTPPORT
  125. User-Agent: curl/%VERSION
  126. Accept: */*
  127. </protocol>
  128. <file name="log/cookie%TESTNUMBER" mode="text">
  129. # Netscape HTTP Cookie File
  130. # https://curl.se/docs/http-cookies.html
  131. # This file was generated by libcurl! Edit at your own risk.
  132. attack.invalid FALSE /a/b/ FALSE 0 cookie-50 yes
  133. attack.invalid FALSE /a/b/ FALSE 0 cookie-49 yes
  134. attack.invalid FALSE /a/b/ FALSE 0 cookie-48 yes
  135. attack.invalid FALSE /a/b/ FALSE 0 cookie-47 yes
  136. attack.invalid FALSE /a/b/ FALSE 0 cookie-46 yes
  137. attack.invalid FALSE /a/b/ FALSE 0 cookie-45 yes
  138. attack.invalid FALSE /a/b/ FALSE 0 cookie-44 yes
  139. attack.invalid FALSE /a/b/ FALSE 0 cookie-43 yes
  140. attack.invalid FALSE /a/b/ FALSE 0 cookie-42 yes
  141. attack.invalid FALSE /a/b/ FALSE 0 cookie-41 yes
  142. attack.invalid FALSE /a/b/ FALSE 0 cookie-40 yes
  143. attack.invalid FALSE /a/b/ FALSE 0 cookie-39 yes
  144. attack.invalid FALSE /a/b/ FALSE 0 cookie-38 yes
  145. attack.invalid FALSE /a/b/ FALSE 0 cookie-37 yes
  146. attack.invalid FALSE /a/b/ FALSE 0 cookie-36 yes
  147. attack.invalid FALSE /a/b/ FALSE 0 cookie-35 yes
  148. attack.invalid FALSE /a/b/ FALSE 0 cookie-34 yes
  149. attack.invalid FALSE /a/b/ FALSE 0 cookie-33 yes
  150. attack.invalid FALSE /a/b/ FALSE 0 cookie-32 yes
  151. attack.invalid FALSE /a/b/ FALSE 0 cookie-31 yes
  152. attack.invalid FALSE /a/b/ FALSE 0 cookie-30 yes
  153. attack.invalid FALSE /a/b/ FALSE 0 cookie-29 yes
  154. attack.invalid FALSE /a/b/ FALSE 0 cookie-28 yes
  155. attack.invalid FALSE /a/b/ FALSE 0 cookie-27 yes
  156. attack.invalid FALSE /a/b/ FALSE 0 cookie-26 yes
  157. attack.invalid FALSE /a/b/ FALSE 0 cookie-25 yes
  158. attack.invalid FALSE /a/b/ FALSE 0 cookie-24 yes
  159. attack.invalid FALSE /a/b/ FALSE 0 cookie-23 yes
  160. attack.invalid FALSE /a/b/ FALSE 0 cookie-22 yes
  161. attack.invalid FALSE /a/b/ FALSE 0 cookie-21 yes
  162. attack.invalid FALSE /a/b/ FALSE 0 cookie-20 yes
  163. attack.invalid FALSE /a/b/ FALSE 0 cookie-19 yes
  164. attack.invalid FALSE /a/b/ FALSE 0 cookie-18 yes
  165. attack.invalid FALSE /a/b/ FALSE 0 cookie-17 yes
  166. attack.invalid FALSE /a/b/ FALSE 0 cookie-16 yes
  167. attack.invalid FALSE /a/b/ FALSE 0 cookie-15 yes
  168. attack.invalid FALSE /a/b/ FALSE 0 cookie-14 yes
  169. attack.invalid FALSE /a/b/ FALSE 0 cookie-13 yes
  170. attack.invalid FALSE /a/b/ FALSE 0 cookie-12 yes
  171. attack.invalid FALSE /a/b/ FALSE 0 cookie-11 yes
  172. attack.invalid FALSE /a/b/ FALSE 0 cookie-10 yes
  173. attack.invalid FALSE /a/b/ FALSE 0 cookie-9 yes
  174. attack.invalid FALSE /a/b/ FALSE 0 cookie-8 yes
  175. attack.invalid FALSE /a/b/ FALSE 0 cookie-7 yes
  176. attack.invalid FALSE /a/b/ FALSE 0 cookie-6 yes
  177. attack.invalid FALSE /a/b/ FALSE 0 cookie-5 yes
  178. attack.invalid FALSE /a/b/ FALSE 0 cookie-4 yes
  179. attack.invalid FALSE /a/b/ FALSE 0 cookie-3 yes
  180. attack.invalid FALSE /a/b/ FALSE 0 cookie-2 yes
  181. attack.invalid FALSE /a/b/ FALSE 0 cookie-1 yes
  182. </file>
  183. </verify>
  184. </testcase>