test2058 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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", algorithm="SHA-256", 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", algorithm="SHA-256", 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. <features>
  57. !SSPI
  58. crypto
  59. proxy
  60. </features>
  61. <name>
  62. HTTP POST --digest with PUT, resumed upload, modified method and SHA-256
  63. </name>
  64. <command>
  65. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u auser:apasswd --digest -T log/%TESTNUMBER -x http://%HOSTIP:%HTTPPORT -C 2 -X GET
  66. </command>
  67. <file name="log/%TESTNUMBER">
  68. test
  69. </file>
  70. </client>
  71. # Verify data after the test has been "shot"
  72. <verify>
  73. <protocol>
  74. GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER HTTP/1.1
  75. Host: %HOSTIP:%HTTPPORT
  76. Content-Range: bytes 2-4/5
  77. User-Agent: curl/%VERSION
  78. Accept: */*
  79. Proxy-Connection: Keep-Alive
  80. Content-Length: 0
  81. GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER HTTP/1.1
  82. Host: %HOSTIP:%HTTPPORT
  83. Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/%TESTNUMBER", response="fbed69f9f3fd304c8f1acb1a43eb32688b933c0e28055c16b926cbcec070aeed", algorithm=SHA-256
  84. Content-Range: bytes 2-4/5
  85. User-Agent: curl/%VERSION
  86. Accept: */*
  87. Proxy-Connection: Keep-Alive
  88. Content-Length: 3
  89. Expect: 100-continue
  90. st
  91. </protocol>
  92. </verify>
  93. </testcase>