2
0

test57 673 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. --write-out
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data nocheck="yes">
  12. HTTP/1.1 200 OK swsclose
  13. Funny-head: yesyes
  14. Content-Type: text/html; charset=ISO-8859-4
  15. </data>
  16. </reply>
  17. # Client-side
  18. <client>
  19. <server>
  20. http
  21. </server>
  22. <name>
  23. HTTP content-type with spaces in
  24. </name>
  25. <command>
  26. -w "%{content_type}\n" http://%HOSTIP:%HTTPPORT/57 -o log/out57
  27. </command>
  28. </client>
  29. # Verify data after the test has been "shot"
  30. <verify>
  31. <stdout mode="text">
  32. text/html; charset=ISO-8859-4
  33. </stdout>
  34. <strip>
  35. ^User-Agent:.*
  36. </strip>
  37. <protocol>
  38. GET /57 HTTP/1.1
  39. Host: %HOSTIP:%HTTPPORT
  40. Accept: */*
  41. </protocol>
  42. </verify>
  43. </testcase>