test579 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. # tool is what to use instead of 'curl'
  53. <tool>
  54. lib579
  55. </tool>
  56. <name>
  57. small chunked HTTP POSTs with digest auth. and progress callback
  58. </name>
  59. <command>
  60. http://%HOSTIP:%HTTPPORT/579 log/ip579
  61. </command>
  62. </client>
  63. #
  64. # Verify data after the test has been "shot"
  65. <verify>
  66. <file name="log/ip579" mode="text">
  67. Progress callback called with UL 0 out of 0
  68. Progress callback called with UL 0 out of -1
  69. Progress callback called with UL 8 out of -1
  70. Progress callback called with UL 16 out of -1
  71. Progress callback called with UL 26 out of -1
  72. Progress callback called with UL 61 out of -1
  73. Progress callback called with UL 66 out of -1
  74. </file>
  75. </verify>
  76. </testcase>