test10 841 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.0 200 OK swsclose
  12. Date: Tue, 09 Nov 2010 14:49:00 GMT
  13. Server: test-server/fake
  14. blablabla
  15. </data>
  16. </reply>
  17. # Client-side
  18. <client>
  19. <server>
  20. http
  21. </server>
  22. <name>
  23. simple HTTP PUT from file
  24. </name>
  25. <command>
  26. http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -T log/test%TESTNUMBER.txt
  27. </command>
  28. <file name="log/test%TESTNUMBER.txt">
  29. Weird
  30. file
  31. to
  32. upload
  33. for
  34. testing
  35. the
  36. PUT
  37. feature
  38. </file>
  39. </client>
  40. # Verify data after the test has been "shot"
  41. <verify>
  42. <protocol>
  43. PUT /we/want/%TESTNUMBER HTTP/1.1
  44. Host: %HOSTIP:%HTTPPORT
  45. User-Agent: curl/%VERSION
  46. Accept: */*
  47. Content-Length: 78
  48. Expect: 100-continue
  49. Weird
  50. file
  51. to
  52. upload
  53. for
  54. testing
  55. the
  56. PUT
  57. feature
  58. </protocol>
  59. </verify>
  60. </testcase>