test1532 577 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <data nocheck="yes">
  12. HTTP/1.0 200 OK swsclose
  13. Content-Length: 0
  14. </data>
  15. </reply>
  16. # Client-side
  17. <client>
  18. <server>
  19. http
  20. </server>
  21. # tool is what to use instead of 'curl'
  22. <tool>
  23. lib1532
  24. </tool>
  25. <name>
  26. Test CURLINFO_RESPONSE_CODE
  27. </name>
  28. <command>
  29. http://%HOSTIP:%HTTPPORT/1532
  30. </command>
  31. </client>
  32. #
  33. # Verify data after the test has been "shot"
  34. <verify>
  35. <protocol>
  36. GET /1532 HTTP/1.1
  37. Host: %HOSTIP:%HTTPPORT
  38. Accept: */*
  39. </protocol>
  40. <errorcode>
  41. 0
  42. </errorcode>
  43. </verify>
  44. </testcase>