test14 605 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP HEAD
  6. </keywords>
  7. </info>
  8. # Server-side
  9. <reply>
  10. <data>
  11. HTTP/1.1 200 OK
  12. Server: thebest/1.0
  13. Connection: close
  14. </data>
  15. </reply>
  16. # Client-side
  17. <client>
  18. <server>
  19. http
  20. </server>
  21. <name>
  22. HTTP HEAD with Connection: close
  23. </name>
  24. <command>
  25. http://%HOSTIP:%HTTPPORT/want/14 -i --head
  26. </command>
  27. </client>
  28. # Verify data after the test has been "shot"
  29. <verify>
  30. <strip>
  31. ^User-Agent:.*
  32. </strip>
  33. <protocol>
  34. HEAD /want/14 HTTP/1.1
  35. User-Agent: curl/7.4.2-pre4 (sparc-sun-solaris2.7) libcurl 7.4.2-pre4
  36. Host: %HOSTIP:%HTTPPORT
  37. Accept: */*
  38. </protocol>
  39. </verify>
  40. </testcase>