诸暨麻将添加redis
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

115 行
2.5 KiB

  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP PUT
  6. HTTP proxy
  7. HTTP Digest auth
  8. Resume
  9. Content-Range
  10. CUSTOMREQUEST
  11. </keywords>
  12. </info>
  13. <reply>
  14. <data>
  15. HTTP/1.1 100 Continue
  16. Server: Microsoft-IIS/5.0
  17. Date: Sun, 03 Apr 2005 14:57:45 GMT
  18. X-Powered-By: ASP.NET
  19. HTTP/1.1 401 authentication please swsbounce
  20. Server: Microsoft-IIS/6.0
  21. WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
  22. Content-Type: text/html; charset=iso-8859-1
  23. Content-Length: 0
  24. </data>
  25. <data1000>
  26. HTTP/1.1 200 A OK
  27. Server: Microsoft-IIS/6.0
  28. Content-Type: text/html; charset=iso-8859-1
  29. Content-Length: 3
  30. ok
  31. </data1000>
  32. <datacheck>
  33. HTTP/1.1 100 Continue
  34. Server: Microsoft-IIS/5.0
  35. Date: Sun, 03 Apr 2005 14:57:45 GMT
  36. X-Powered-By: ASP.NET
  37. HTTP/1.1 401 authentication please swsbounce
  38. Server: Microsoft-IIS/6.0
  39. WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
  40. Content-Type: text/html; charset=iso-8859-1
  41. Content-Length: 0
  42. HTTP/1.1 200 A OK
  43. Server: Microsoft-IIS/6.0
  44. Content-Type: text/html; charset=iso-8859-1
  45. Content-Length: 3
  46. ok
  47. </datacheck>
  48. </reply>
  49. # Client-side
  50. <client>
  51. #
  52. <server>
  53. http
  54. </server>
  55. <name>
  56. HTTP POST --digest with PUT and resumed upload and modified method, twice
  57. </name>
  58. <command>
  59. http://%HOSTIP:%HTTPPORT/1002.upload1 -T log/1002 http://%HOSTIP:%HTTPPORT/1002.upload2 -T log/1002 -u auser:apasswd --digest -x http://%HOSTIP:%HTTPPORT -C 2 -X GET
  60. </command>
  61. <file name="log/1002">
  62. test
  63. </file>
  64. </client>
  65. # Verify data after the test has been "shot"
  66. <verify>
  67. <strip>
  68. ^User-Agent:.*
  69. </strip>
  70. <protocol>
  71. GET http://%HOSTIP:%HTTPPORT/1002.upload1 HTTP/1.1
  72. Content-Range: bytes 2-4/5
  73. User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6
  74. Host: %HOSTIP:%HTTPPORT
  75. Accept: */*
  76. Proxy-Connection: Keep-Alive
  77. Content-Length: 0
  78. Expect: 100-continue
  79. GET http://%HOSTIP:%HTTPPORT/1002.upload1 HTTP/1.1
  80. Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/1002.upload1", response="198aa9b6acb4b0c71d02a197a5e41f54"
  81. Content-Range: bytes 2-4/5
  82. Host: %HOSTIP:%HTTPPORT
  83. Accept: */*
  84. Proxy-Connection: Keep-Alive
  85. Content-Length: 3
  86. Expect: 100-continue
  87. st
  88. GET http://%HOSTIP:%HTTPPORT/1002.upload2 HTTP/1.1
  89. Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/1002.upload2", response="d711f0d2042786d930de635ba0d1a1d0"
  90. Content-Range: bytes 2-4/5
  91. User-Agent: curl/7.16.1
  92. Host: %HOSTIP:%HTTPPORT
  93. Accept: */*
  94. Proxy-Connection: Keep-Alive
  95. Content-Length: 3
  96. Expect: 100-continue
  97. st
  98. </protocol>
  99. </verify>
  100. </testcase>