test672 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. FORM
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Tue, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake swsclose
  16. Connection: close
  17. Content-Type: text/html
  18. hello
  19. </data>
  20. <datacheck>
  21. HTTP/1.1 200 OK
  22. Date: Tue, 09 Nov 2010 14:49:00 GMT
  23. Server: test-server/fake swsclose
  24. Connection: close
  25. Content-Type: text/html
  26. hello
  27. </datacheck>
  28. </reply>
  29. # Client-side
  30. <client>
  31. <server>
  32. http
  33. </server>
  34. # tool is what to use instead of 'curl'
  35. <tool>
  36. lib%TESTNUMBER
  37. </tool>
  38. <name>
  39. Request pause from form read callback: multi
  40. </name>
  41. <command>
  42. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  43. </command>
  44. </client>
  45. #
  46. # Verify data after the test has been "shot"
  47. <verify>
  48. <strippart>
  49. s/^--------------------------[a-z0-9]*/------------------------------/
  50. s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/
  51. </strippart>
  52. <protocol>
  53. POST /%TESTNUMBER HTTP/1.1
  54. Host: %HOSTIP:%HTTPPORT
  55. Accept: */*
  56. Content-Length: 142
  57. Content-Type: multipart/form-data; boundary=----------------------------
  58. ------------------------------
  59. Content-Disposition: form-data; name="field"
  60. AB
  61. --------------------------------
  62. </protocol>
  63. </verify>
  64. </testcase>