test581 756 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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: Tue, 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/%TESTNUMBER
  39. </command>
  40. </client>
  41. # Verify data after the test has been "shot"
  42. <verify>
  43. <protocol>
  44. GET /%TESTNUMBER HTTP/1.1
  45. Host: %HOSTIP:%HTTPPORT
  46. Accept: */*
  47. </protocol>
  48. </verify>
  49. </testcase>