test581 772 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. multi
  7. Duplicate-header
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 all good!
  14. Date: Thu, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Content-Type: text/html
  17. Content-Length: 0
  18. Connection: close
  19. Content-Type: changed/my/mind
  20. </data>
  21. </reply>
  22. # Client-side
  23. <client>
  24. <server>
  25. http
  26. </server>
  27. <features>
  28. http
  29. </features>
  30. # tool is what to use instead of 'curl'
  31. <tool>
  32. lib507
  33. </tool>
  34. <name>
  35. multi interface, multiple Content-Type: headers
  36. </name>
  37. <command>
  38. http://%HOSTIP:%HTTPPORT/581
  39. </command>
  40. </client>
  41. # Verify data after the test has been "shot"
  42. <verify>
  43. <strip>
  44. ^User-Agent:.*
  45. </strip>
  46. <protocol>
  47. GET /581 HTTP/1.1
  48. Host: %HOSTIP:%HTTPPORT
  49. Accept: */*
  50. </protocol>
  51. </verify>
  52. </testcase>