test671 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. MIME
  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. <features>
  32. Mime
  33. </features>
  34. <server>
  35. http
  36. </server>
  37. # tool is what to use instead of 'curl'
  38. <tool>
  39. lib%TESTNUMBER
  40. </tool>
  41. <name>
  42. Request pause from mime read callback: easy
  43. </name>
  44. <command>
  45. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  46. </command>
  47. </client>
  48. #
  49. # Verify data after the test has been "shot"
  50. <verify>
  51. <strippart>
  52. s/^--------------------------[A-Za-z0-9]*/------------------------------/
  53. s/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/
  54. </strippart>
  55. <protocol>
  56. POST /%TESTNUMBER HTTP/1.1
  57. Host: %HOSTIP:%HTTPPORT
  58. Accept: */*
  59. Content-Length: 154
  60. Content-Type: multipart/form-data; boundary=----------------------------
  61. ------------------------------
  62. Content-Disposition: form-data; name="field"
  63. AB
  64. --------------------------------
  65. </protocol>
  66. </verify>
  67. </testcase>