test1121 622 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. </keywords>
  6. </info>
  7. #
  8. # Server-side
  9. <reply>
  10. <data>
  11. HTTP/1.0 200 OK
  12. Server: test-server/fake
  13. Content-Type: text/html
  14. Content-Length: 6
  15. blaha
  16. </data>
  17. </reply>
  18. #
  19. # Client-side
  20. <client>
  21. <server>
  22. http
  23. </server>
  24. <name>
  25. HTTP multiple provided Host: headers
  26. </name>
  27. <command>
  28. -H "Host: host1" -H "Host: host2" -H "Host: host3" http://%HOSTIP:%HTTPPORT/1121
  29. </command>
  30. </client>
  31. #
  32. # Verify data after the test has been "shot"
  33. <verify>
  34. <strip>
  35. ^User-Agent:.*
  36. </strip>
  37. <protocol>
  38. GET /1121 HTTP/1.1
  39. Accept: */*
  40. Host: host1
  41. Host: host2
  42. Host: host3
  43. </protocol>
  44. </verify>
  45. </testcase>