test58 714 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. HTTP PUT from file with weird letters
  24. </name>
  25. <command>
  26. http://%HOSTIP:%HTTPPORT/we/want/ -T log/58te[]st.txt -g
  27. </command>
  28. <file name="log/58te[]st.txt">
  29. a few bytes
  30. </file>
  31. </client>
  32. # Verify data after the test has been "shot"
  33. <verify>
  34. <strip>
  35. ^User-Agent:.*
  36. </strip>
  37. <protocol>
  38. PUT /we/want/58te%5B%5Dst.txt HTTP/1.1
  39. Host: %HOSTIP:%HTTPPORT
  40. Accept: */*
  41. Content-Length: 12
  42. Expect: 100-continue
  43. a few bytes
  44. </protocol>
  45. </verify>
  46. </testcase>