诸暨麻将添加redis
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

126 wiersze
1.7 KiB

  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. FTP
  7. PASV
  8. FILE
  9. TFTP
  10. TFTP RRQ
  11. multiprotocol
  12. </keywords>
  13. </info>
  14. #
  15. # Server-side
  16. <reply>
  17. <data1 nocheck="yes">
  18. HTTP/1.1 200 OK
  19. Date: Thu, 09 Nov 2010 14:49:00 GMT
  20. Server: test-server/fake
  21. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  22. ETag: "21025-dc7-39462498"
  23. Accept-Ranges: bytes
  24. Content-Length: 6
  25. Connection: close
  26. Content-Type: text/html
  27. Funny-head: yesyes
  28. -foo-
  29. </data1>
  30. <data2 nocheck="yes">
  31. data
  32. to
  33. see
  34. that FTP
  35. works
  36. so does it?
  37. </data2>
  38. <data3 nocheck="yes">
  39. a chunk of
  40. data
  41. returned
  42. to TFTP client
  43. </data3>
  44. </reply>
  45. #
  46. # Client-side
  47. <client>
  48. <server>
  49. http
  50. ftp
  51. file
  52. tftp
  53. </server>
  54. <name>
  55. HTTP GET followed by FTP RETR followed by FILE followed by TFTP RRQ
  56. </name>
  57. <command>
  58. http://%HOSTIP:%HTTPPORT/20020001 ftp://%HOSTIP:%FTPPORT/20020002 file://localhost/%PWD/log/test2002.txt tftp://%HOSTIP:%TFTPPORT//20020003
  59. </command>
  60. <file name="log/test2002.txt">
  61. foo
  62. bar
  63. bar
  64. foo
  65. moo
  66. </file>
  67. </client>
  68. #
  69. # Verify data after the test has been "shot"
  70. <verify>
  71. <strip>
  72. ^User-Agent:.*
  73. </strip>
  74. <protocol>
  75. GET /20020001 HTTP/1.1
  76. Host: %HOSTIP:%HTTPPORT
  77. Accept: */*
  78. USER anonymous
  79. PASS ftp@example.com
  80. PWD
  81. EPSV
  82. TYPE I
  83. SIZE 20020002
  84. RETR 20020002
  85. opcode: 1
  86. filename: /20020003
  87. mode: octet
  88. QUIT
  89. </protocol>
  90. <stdout>
  91. HTTP/1.1 200 OK
  92. Date: Thu, 09 Nov 2010 14:49:00 GMT
  93. Server: test-server/fake
  94. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  95. ETag: "21025-dc7-39462498"
  96. Accept-Ranges: bytes
  97. Content-Length: 6
  98. Connection: close
  99. Content-Type: text/html
  100. Funny-head: yesyes
  101. -foo-
  102. data
  103. to
  104. see
  105. that FTP
  106. works
  107. so does it?
  108. foo
  109. bar
  110. bar
  111. foo
  112. moo
  113. a chunk of
  114. data
  115. returned
  116. to TFTP client
  117. </stdout>
  118. </verify>
  119. </testcase>