test181 885 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. HTTP/1.0
  7. </keywords>
  8. </info>
  9. <reply>
  10. <data>
  11. HTTP/1.0 200 OK swsclose
  12. Date: Tue, 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 POST
  24. </name>
  25. <command>
  26. http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER --data-binary @log/test%TESTNUMBER.txt --http1.0
  27. </command>
  28. <file name="log/test%TESTNUMBER.txt">
  29. Weird
  30. file
  31. to
  32. upload
  33. for
  34. testing
  35. the
  36. POST
  37. feature
  38. </file>
  39. </client>
  40. # Verify data after the test has been "shot"
  41. <verify>
  42. <protocol>
  43. POST /we/want/%TESTNUMBER HTTP/1.0
  44. Host: %HOSTIP:%HTTPPORT
  45. User-Agent: curl/%VERSION
  46. Accept: */*
  47. Content-Length: 79
  48. Content-Type: application/x-www-form-urlencoded
  49. Weird
  50. file
  51. to
  52. upload
  53. for
  54. testing
  55. the
  56. POST
  57. feature
  58. </protocol>
  59. </verify>
  60. </testcase>