test57 696 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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/%TESTNUMBER -o %LOGDIR/out%TESTNUMBER
  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. <protocol>
  35. GET /%TESTNUMBER HTTP/1.1
  36. Host: %HOSTIP:%HTTPPORT
  37. User-Agent: curl/%VERSION
  38. Accept: */*
  39. </protocol>
  40. </verify>
  41. </testcase>