test1438 759 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <testcase>
  2. <info>
  3. <keywords>
  4. protocol
  5. --write-out
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. <data nocheck="yes">
  11. HTTP/1.1 200 OK
  12. Date: Thu, 09 Nov 2010 14:49:00 GMT
  13. Content-Length: 9
  14. Connection: close
  15. Content-Type: text/plain
  16. testdata
  17. </data>
  18. </reply>
  19. # Client-side
  20. <client>
  21. <server>
  22. http
  23. </server>
  24. <name>
  25. Check if %{scheme} returns HTTP
  26. </name>
  27. <command>
  28. http://%HOSTIP:%HTTPPORT/1438 --write-out '%{scheme}'
  29. </command>
  30. </client>
  31. # Verify data
  32. <verify>
  33. <stdout nonewline="yes">
  34. HTTP/1.1 200 OK
  35. Date: Thu, 09 Nov 2010 14:49:00 GMT
  36. Content-Length: 9
  37. Connection: close
  38. Content-Type: text/plain
  39. testdata
  40. HTTP
  41. </stdout>
  42. <protocol>
  43. GET /1438 HTTP/1.1
  44. Host: %HOSTIP:%HTTPPORT
  45. Accept: */*
  46. </protocol>
  47. <strip>
  48. ^User-Agent:.*
  49. </strip>
  50. </verify>
  51. </testcase>