test585 991 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. multi
  7. CURLOPT_OPENSOCKETFUNCTION
  8. CURLOPT_CLOSESOCKETFUNCTION
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. <data>
  14. HTTP/1.1 302 eat this!
  15. Date: Thu, 09 Nov 2010 14:49:00 GMT
  16. Server: test-server/fake
  17. Location: this-is-the-first.html
  18. Content-Length: 0
  19. Connection: close
  20. </data>
  21. <datacheck>
  22. [OPEN] counter: 1
  23. HTTP/1.1 302 eat this!
  24. Date: Thu, 09 Nov 2010 14:49:00 GMT
  25. Server: test-server/fake
  26. Location: this-is-the-first.html
  27. Content-Length: 0
  28. Connection: close
  29. [CLOSE] counter: 1
  30. </datacheck>
  31. </reply>
  32. # Client-side
  33. <client>
  34. <server>
  35. http
  36. </server>
  37. <features>
  38. http
  39. </features>
  40. # tool is what to use instead of 'curl'
  41. <tool>
  42. lib585
  43. </tool>
  44. <name>
  45. socket open/close callbacks
  46. </name>
  47. <command>
  48. http://%HOSTIP:%HTTPPORT/585
  49. </command>
  50. </client>
  51. # Verify data after the test has been "shot"
  52. <verify>
  53. <strip>
  54. ^User-Agent:.*
  55. </strip>
  56. <protocol>
  57. GET /585 HTTP/1.1
  58. Host: %HOSTIP:%HTTPPORT
  59. Accept: */*
  60. </protocol>
  61. </verify>
  62. </testcase>