test181 858 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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: 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 POST
  24. </name>
  25. <command>
  26. http://%HOSTIP:%HTTPPORT/we/want/181 --data-binary @log/test181.txt --http1.0
  27. </command>
  28. <file name="log/test181.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. <strip>
  43. ^User-Agent:.*
  44. </strip>
  45. <protocol>
  46. POST /we/want/181 HTTP/1.0
  47. Host: %HOSTIP:%HTTPPORT
  48. Accept: */*
  49. Content-Length: 79
  50. Content-Type: application/x-www-form-urlencoded
  51. Weird
  52. file
  53. to
  54. upload
  55. for
  56. testing
  57. the
  58. POST
  59. feature
  60. </protocol>
  61. </verify>
  62. </testcase>