test2084 753 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. </keywords>
  6. </info>
  7. # Server-side
  8. <reply>
  9. <data nocheck="yes">
  10. HTTP/1.1 200 OK
  11. Date: Tue, 09 Nov 2010 14:49:00 GMT
  12. Server: test-server/fake
  13. Content-Type: text/html
  14. Content-Length: 0
  15. </data>
  16. </reply>
  17. # Client-side
  18. <client>
  19. <server>
  20. http
  21. </server>
  22. <name>
  23. Pre-request callback for HTTP with callback terminating transfer
  24. </name>
  25. <tool>
  26. libprereq
  27. </tool>
  28. <command>
  29. %HOSTIP:%HTTPPORT/%TESTNUMBER#err
  30. </command>
  31. </client>
  32. # Verify data after the test has been "shot"
  33. <verify>
  34. <errorcode>
  35. 42
  36. </errorcode>
  37. <stripfile>
  38. s/^Local port = \d+/Local port = stripped/
  39. </stripfile>
  40. <stdout>
  41. Connected to %HOSTIP
  42. Connected from %CLIENTIP
  43. Remote port = %HTTPPORT
  44. Local port = stripped
  45. Returning = 1
  46. </stdout>
  47. </verify>
  48. </testcase>