test158 904 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. <data>
  11. HTTP/1.1 100 Continue swsclose
  12. Silly-header: yeeeees
  13. </data>
  14. </reply>
  15. # Client-side
  16. <client>
  17. <server>
  18. http
  19. </server>
  20. <name>
  21. HTTP multipart formpost with only a 100 reply
  22. </name>
  23. <command>
  24. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -F name=daniel
  25. </command>
  26. </client>
  27. # Verify data after the test has been "shot"
  28. <verify>
  29. <strip>
  30. ^Content-Type: multipart/form-data.*
  31. ^-----------------------.*
  32. </strip>
  33. <protocol>
  34. POST /%TESTNUMBER HTTP/1.1
  35. Host: %HOSTIP:%HTTPPORT
  36. User-Agent: curl/%VERSION
  37. Accept: */*
  38. Content-Length: 145
  39. Content-Type: multipart/form-data; boundary=----------------------------4f12fcdaa3bc
  40. ------------------------------4f12fcdaa3bc
  41. Content-Disposition: form-data; name="name"
  42. daniel
  43. ------------------------------4f12fcdaa3bc--
  44. </protocol>
  45. <errorcode>
  46. 52
  47. </errorcode>
  48. </verify>
  49. </testcase>