test1223 878 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. </keywords>
  7. </info>
  8. #
  9. # disable data check since it gets sent to stdout and is verified there
  10. <reply>
  11. <data nocheck="yes">
  12. HTTP/1.1 200 OK
  13. Date: Thu, 09 Nov 2010 14:49:00 GMT
  14. Content-Length: 4
  15. Connection: close
  16. Content-Type: text/html
  17. hej
  18. </data>
  19. </reply>
  20. #
  21. # Client-side
  22. <client>
  23. <server>
  24. http
  25. </server>
  26. <name>
  27. HTTP GET -w remote_ip and -w remote_port
  28. </name>
  29. <command>
  30. http://%HOSTIP:%HTTPPORT/1223 -w 'IP %{remote_ip} and PORT %{remote_port}\n'
  31. </command>
  32. </client>
  33. #
  34. # Verify data after the test has been "shot"
  35. <verify>
  36. <strip>
  37. ^User-Agent:.*
  38. </strip>
  39. <protocol>
  40. GET /1223 HTTP/1.1
  41. Host: %HOSTIP:%HTTPPORT
  42. Accept: */*
  43. </protocol>
  44. <stdout>
  45. HTTP/1.1 200 OK
  46. Date: Thu, 09 Nov 2010 14:49:00 GMT
  47. Content-Length: 4
  48. Connection: close
  49. Content-Type: text/html
  50. hej
  51. IP %HOSTIP and PORT %HTTPPORT
  52. </stdout>
  53. </verify>
  54. </testcase>