test57 612 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Server-side
  2. <reply>
  3. <data>
  4. HTTP/1.1 200 OK swsclose
  5. Funny-head: yesyes
  6. Content-Type: text/html; charset=ISO-8859-4
  7. </data>
  8. </reply>
  9. # Client-side
  10. <client>
  11. <server>
  12. http
  13. </server>
  14. <name>
  15. HTTP content-type with spaces in
  16. </name>
  17. <command>
  18. -w '%{content_type}\n' %HOSTIP:%HOSTPORT/57 -o log/out57
  19. </command>
  20. </test>
  21. # Verify data after the test has been "shot"
  22. <verify>
  23. <file name="log/out57">
  24. text/html; charset=ISO-8859-4
  25. </file>
  26. <strip>
  27. ^User-Agent:.*
  28. </strip>
  29. <protocol>
  30. GET /57 HTTP/1.1
  31. Host: 127.0.0.1:8999
  32. Pragma: no-cache
  33. Accept: */*
  34. </protocol>
  35. </verify>