test1439 774 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. --write-out
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. <data nocheck="yes">
  11. HTTP/1.1 200 OK
  12. Date: Tue, 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 %{http_version} returns 1.1
  26. </name>
  27. <command>
  28. http://%HOSTIP:%HTTPPORT/%TESTNUMBER --write-out '%{http_version}'
  29. </command>
  30. </client>
  31. # Verify data
  32. <verify>
  33. <stdout nonewline="yes">
  34. HTTP/1.1 200 OK
  35. Date: Tue, 09 Nov 2010 14:49:00 GMT
  36. Content-Length: 9
  37. Connection: close
  38. Content-Type: text/plain
  39. testdata
  40. 1.1
  41. </stdout>
  42. <protocol>
  43. GET /%TESTNUMBER HTTP/1.1
  44. Host: %HOSTIP:%HTTPPORT
  45. User-Agent: curl/%VERSION
  46. Accept: */*
  47. </protocol>
  48. </verify>
  49. </testcase>