test1002 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. <features>
  56. !SSPI
  57. crypto
  58. </features>
  59. <name>
  60. HTTP POST --digest with PUT and resumed upload and modified method, twice
  61. </name>
  62. <command>
  63. 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
  64. </command>
  65. <file name="log/1002">
  66. test
  67. </file>
  68. </client>
  69. # Verify data after the test has been "shot"
  70. <verify>
  71. <strip>
  72. ^User-Agent:.*
  73. </strip>
  74. <protocol>
  75. GET http://%HOSTIP:%HTTPPORT/1002.upload1 HTTP/1.1
  76. Host: %HOSTIP:%HTTPPORT
  77. Content-Range: bytes 2-4/5
  78. 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
  79. Accept: */*
  80. Proxy-Connection: Keep-Alive
  81. Content-Length: 0
  82. GET http://%HOSTIP:%HTTPPORT/1002.upload1 HTTP/1.1
  83. Host: %HOSTIP:%HTTPPORT
  84. Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/1002.upload1", response="198aa9b6acb4b0c71d02a197a5e41f54"
  85. Content-Range: bytes 2-4/5
  86. Accept: */*
  87. Proxy-Connection: Keep-Alive
  88. Content-Length: 3
  89. Expect: 100-continue
  90. st
  91. GET http://%HOSTIP:%HTTPPORT/1002.upload2 HTTP/1.1
  92. Host: %HOSTIP:%HTTPPORT
  93. Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/1002.upload2", response="d711f0d2042786d930de635ba0d1a1d0"
  94. Content-Range: bytes 2-4/5
  95. User-Agent: curl/7.16.1
  96. Accept: */*
  97. Proxy-Connection: Keep-Alive
  98. Content-Length: 3
  99. Expect: 100-continue
  100. st
  101. </protocol>
  102. </verify>
  103. </testcase>