test281 888 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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: Tue, 09 Nov 2010 14:49:00 GMT
  14. WWW-Authenticate: Basic Realm=authenticate
  15. Server: test-server/fake
  16. </data>
  17. </reply>
  18. # Client-side
  19. <client>
  20. <server>
  21. http
  22. </server>
  23. <name>
  24. HTTP PUT from file with 100 + 401 responses and -f without auth given
  25. </name>
  26. <command>
  27. http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -f -T %LOGDIR/test%TESTNUMBER.txt
  28. </command>
  29. <file name="%LOGDIR/test%TESTNUMBER.txt">
  30. Weird
  31. file
  32. to
  33. upload
  34. </file>
  35. </client>
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <errorcode>
  39. 22
  40. </errorcode>
  41. <protocol>
  42. PUT /we/want/%TESTNUMBER HTTP/1.1
  43. Host: %HOSTIP:%HTTPPORT
  44. User-Agent: curl/%VERSION
  45. Accept: */*
  46. Content-Length: 38
  47. Weird
  48. file
  49. to
  50. upload
  51. </protocol>
  52. </verify>
  53. </testcase>