test180 792 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP PUT
  6. HTTP/1.0
  7. </keywords>
  8. </info>
  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. HTTP 1.0 PUT
  24. </name>
  25. <command>
  26. http://%HOSTIP:%HTTPPORT/we/want/180 -T log/test180.txt --http1.0
  27. </command>
  28. <file name="log/test180.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/180 HTTP/1.0
  47. Host: %HOSTIP:%HTTPPORT
  48. Accept: */*
  49. Content-Length: 78
  50. Weird
  51. file
  52. to
  53. upload
  54. for
  55. testing
  56. the
  57. PUT
  58. feature
  59. </protocol>
  60. </verify>
  61. </testcase>