test97 712 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. HTTP replaced headers
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.0 200 OK
  14. Server: test-server/fake
  15. Content-Type: text/html
  16. Content-Length: 6
  17. blaha
  18. </data>
  19. </reply>
  20. #
  21. # Client-side
  22. <client>
  23. <server>
  24. http
  25. </server>
  26. <name>
  27. HTTP POST with custom content-type
  28. </name>
  29. <command>
  30. -d "hejsanallabarn" -H "Content-Type: silly/type" http://%HOSTIP:%HTTPPORT/97
  31. </command>
  32. </client>
  33. #
  34. # Verify data after the test has been "shot"
  35. <verify>
  36. <strip>
  37. ^User-Agent:.*
  38. </strip>
  39. <protocol nonewline="yes">
  40. POST /97 HTTP/1.1
  41. Host: %HOSTIP:%HTTPPORT
  42. Accept: */*
  43. Content-Type: silly/type
  44. Content-Length: 14
  45. hejsanallabarn
  46. </protocol>
  47. </verify>
  48. </testcase>