test579 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. HTTP Digest auth
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 100 Continue
  14. Server: Microsoft-IIS/5.0
  15. Date: Sun, 03 Apr 2005 14:57:45 GMT
  16. X-Powered-By: ASP.NET
  17. HTTP/1.1 401 authentication please swsbounce
  18. Server: Microsoft-IIS/6.0
  19. WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
  20. Content-Type: text/html; charset=iso-8859-1
  21. Content-Length: 0
  22. </data>
  23. <data1>
  24. HTTP/1.1 200 A OK
  25. Server: Microsoft-IIS/6.0
  26. Content-Type: text/html; charset=iso-8859-1
  27. Content-Length: 3
  28. ok
  29. </data1>
  30. <datacheck>
  31. HTTP/1.1 100 Continue
  32. Server: Microsoft-IIS/5.0
  33. Date: Sun, 03 Apr 2005 14:57:45 GMT
  34. X-Powered-By: ASP.NET
  35. HTTP/1.1 401 authentication please swsbounce
  36. Server: Microsoft-IIS/6.0
  37. WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
  38. Content-Type: text/html; charset=iso-8859-1
  39. Content-Length: 0
  40. HTTP/1.1 200 A OK
  41. Server: Microsoft-IIS/6.0
  42. Content-Type: text/html; charset=iso-8859-1
  43. Content-Length: 3
  44. ok
  45. </datacheck>
  46. </reply>
  47. # Client-side
  48. <client>
  49. <server>
  50. http
  51. </server>
  52. <features>
  53. crypto
  54. </features>
  55. # tool is what to use instead of 'curl'
  56. <tool>
  57. lib%TESTNUMBER
  58. </tool>
  59. <name>
  60. small chunked HTTP POSTs with digest auth. and progress callback
  61. </name>
  62. <command>
  63. http://%HOSTIP:%HTTPPORT/%TESTNUMBER log/ip%TESTNUMBER
  64. </command>
  65. </client>
  66. #
  67. # Verify data after the test has been "shot"
  68. <verify>
  69. <file name="log/ip%TESTNUMBER">
  70. Progress callback called with UL 0 out of 0
  71. Progress callback called with UL 8 out of 0
  72. Progress callback called with UL 16 out of 0
  73. Progress callback called with UL 26 out of 0
  74. Progress callback called with UL 61 out of 0
  75. Progress callback called with UL 66 out of 0
  76. </file>
  77. </verify>
  78. </testcase>