test281 925 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP PUT
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. <data>
  11. HTTP/1.1 100 Continue
  12. HTTP/1.1 401 Bad Auth swsclose
  13. Date: Thu, 09 Nov 2010 14:49:00 GMT
  14. WWW-Authenticate: Basic Realm=authenticate
  15. Server: test-server/fake
  16. </data>
  17. <datacheck>
  18. HTTP/1.1 100 Continue
  19. </datacheck>
  20. </reply>
  21. # Client-side
  22. <client>
  23. <server>
  24. http
  25. </server>
  26. <name>
  27. HTTP PUT from file with 100 + 401 responses and -f without auth given
  28. </name>
  29. <command>
  30. http://%HOSTIP:%HTTPPORT/we/want/281 -f -T log/test281.txt
  31. </command>
  32. <file name="log/test281.txt">
  33. Weird
  34. file
  35. to
  36. upload
  37. </file>
  38. </client>
  39. # Verify data after the test has been "shot"
  40. <verify>
  41. <errorcode>
  42. 22
  43. </errorcode>
  44. <strip>
  45. ^User-Agent:.*
  46. </strip>
  47. <protocol>
  48. PUT /we/want/281 HTTP/1.1
  49. Host: %HOSTIP:%HTTPPORT
  50. Accept: */*
  51. Content-Length: 38
  52. Expect: 100-continue
  53. Weird
  54. file
  55. to
  56. upload
  57. </protocol>
  58. </verify>
  59. </testcase>