test1001 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. # Server-side
  14. <reply>
  15. <data>
  16. HTTP/1.1 100 Continue
  17. Server: Microsoft-IIS/5.0
  18. Date: Sun, 03 Apr 2005 14:57:45 GMT
  19. X-Powered-By: ASP.NET
  20. HTTP/1.1 401 authentication please swsbounce
  21. Server: Microsoft-IIS/6.0
  22. WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
  23. Content-Type: text/html; charset=iso-8859-1
  24. Content-Length: 0
  25. </data>
  26. <data1000>
  27. HTTP/1.1 200 A OK
  28. Server: Microsoft-IIS/6.0
  29. Content-Type: text/html; charset=iso-8859-1
  30. Content-Length: 3
  31. ok
  32. </data1000>
  33. <datacheck>
  34. HTTP/1.1 100 Continue
  35. Server: Microsoft-IIS/5.0
  36. Date: Sun, 03 Apr 2005 14:57:45 GMT
  37. X-Powered-By: ASP.NET
  38. HTTP/1.1 401 authentication please swsbounce
  39. Server: Microsoft-IIS/6.0
  40. WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
  41. Content-Type: text/html; charset=iso-8859-1
  42. Content-Length: 0
  43. HTTP/1.1 200 A OK
  44. Server: Microsoft-IIS/6.0
  45. Content-Type: text/html; charset=iso-8859-1
  46. Content-Length: 3
  47. ok
  48. </datacheck>
  49. </reply>
  50. # Client-side
  51. <client>
  52. #
  53. <server>
  54. http
  55. </server>
  56. <name>
  57. HTTP POST --digest with PUT and resumed upload and modified method
  58. </name>
  59. <command>
  60. http://%HOSTIP:%HTTPPORT/1001 -u auser:apasswd --digest -T log/1001 -x http://%HOSTIP:%HTTPPORT -C 2 -X GET
  61. </command>
  62. <file name="log/1001">
  63. test
  64. </file>
  65. </client>
  66. # Verify data after the test has been "shot"
  67. <verify>
  68. <strip>
  69. ^User-Agent:.*
  70. </strip>
  71. <protocol>
  72. GET http://%HOSTIP:%HTTPPORT/1001 HTTP/1.1
  73. Content-Range: bytes 2-4/5
  74. 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
  75. Host: %HOSTIP:%HTTPPORT
  76. Accept: */*
  77. Proxy-Connection: Keep-Alive
  78. Content-Length: 0
  79. Expect: 100-continue
  80. GET http://%HOSTIP:%HTTPPORT/1001 HTTP/1.1
  81. Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/1001", response="6af4d89c952f4dd4cc215a6878dc499d"
  82. Content-Range: bytes 2-4/5
  83. Host: %HOSTIP:%HTTPPORT
  84. Accept: */*
  85. Proxy-Connection: Keep-Alive
  86. Content-Length: 3
  87. Expect: 100-continue
  88. st
  89. </protocol>
  90. </verify>
  91. </testcase>