test10 808 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Server-side
  2. <reply>
  3. <data>
  4. HTTP/1.0 200 OK swsclose
  5. Date: Thu, 09 Nov 2010 14:49:00 GMT
  6. Server: test-server/fake
  7. blablabla
  8. </data>
  9. </reply>
  10. # Client-side
  11. <client>
  12. <server>
  13. http
  14. </server>
  15. <name>
  16. simple HTTP PUT from file
  17. </name>
  18. <command>
  19. http://%HOSTIP:%HOSTPORT/we/want/10 -T log/test10.txt
  20. </command>
  21. <file name="log/test10.txt">
  22. Weird
  23. file
  24. to
  25. upload
  26. for
  27. testing
  28. the
  29. PUT
  30. feature
  31. </file>
  32. </test>
  33. # Verify data after the test has been "shot"
  34. <verify>
  35. <strip>
  36. ^User-Agent:.*
  37. </strip>
  38. <protocol>
  39. PUT /we/want/10 HTTP/1.1
  40. Host: 127.0.0.1:8999
  41. Pragma: no-cache
  42. Accept: */*
  43. Content-Length: 78
  44. Expect: 100-continue
  45. Weird
  46. file
  47. to
  48. upload
  49. for
  50. testing
  51. the
  52. PUT
  53. feature
  54. </protocol>
  55. </verify>