test1662 984 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <data nocheck="yes">
  12. HTTP/1.1 301 OK
  13. Date: Tue, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  16. ETag: "21025-dc7-39462498"
  17. Accept-Ranges: bytes
  18. Content-Length: 6
  19. Location: %TESTNUMBER0002
  20. Content-Type: text/html
  21. Funny-head: yesyes
  22. -foo-
  23. </data>
  24. <data2 nocheck="yes">
  25. HTTP/1.1 200 OK
  26. Content-Length: 6
  27. Connection: close
  28. Funny-head: nono
  29. -bar-
  30. </data2>
  31. </reply>
  32. #
  33. # Client-side
  34. <client>
  35. <features>
  36. Mime
  37. debug
  38. </features>
  39. <server>
  40. http
  41. </server>
  42. <name>
  43. HTTP formpost from callback and a redirect and switch to GET
  44. </name>
  45. <tool>
  46. lib%TESTNUMBER
  47. </tool>
  48. <command>
  49. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  50. </command>
  51. </client>
  52. #
  53. # Verify data after the test has been "shot"
  54. <verify>
  55. # This does not verify the protocol because the sending of data might be
  56. # aborted early making it hard to check properly.
  57. <stdout>
  58. -bar-
  59. </stdout>
  60. </verify>
  61. </testcase>