test10 817 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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: Thu, 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/10 -T log/test10.txt
  27. </command>
  28. <file name="log/test10.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. <strip>
  43. ^User-Agent:.*
  44. </strip>
  45. <protocol>
  46. PUT /we/want/10 HTTP/1.1
  47. Host: %HOSTIP:%HTTPPORT
  48. Accept: */*
  49. Content-Length: 78
  50. Expect: 100-continue
  51. Weird
  52. file
  53. to
  54. upload
  55. for
  56. testing
  57. the
  58. PUT
  59. feature
  60. </protocol>
  61. </verify>
  62. </testcase>