test181 795 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <testcase>
  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. HTTP 1.0 POST
  17. </name>
  18. <command>
  19. http://%HOSTIP:%HTTPPORT/we/want/181 --data-binary @log/test181.txt --http1.0
  20. </command>
  21. <file name="log/test181.txt">
  22. Weird
  23. file
  24. to
  25. upload
  26. for
  27. testing
  28. the
  29. POST
  30. feature
  31. </file>
  32. </client>
  33. # Verify data after the test has been "shot"
  34. <verify>
  35. <strip>
  36. ^User-Agent:.*
  37. </strip>
  38. <protocol>
  39. POST /we/want/181 HTTP/1.0
  40. Host: %HOSTIP:%HTTPPORT
  41. Accept: */*
  42. Content-Length: 79
  43. Content-Type: application/x-www-form-urlencoded
  44. Weird
  45. file
  46. to
  47. upload
  48. for
  49. testing
  50. the
  51. POST
  52. feature
  53. </protocol>
  54. </verify>
  55. </testcase>