test1919 816 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <testcase>
  2. <info>
  3. <keywords>
  4. conn-reuse
  5. </keywords>
  6. </info>
  7. # Server-side
  8. <reply>
  9. <data nocheck="yes">
  10. HTTP/1.1 200 OK
  11. Content-Length: 6
  12. -foo-
  13. </data>
  14. </reply>
  15. # Client-side
  16. <client>
  17. <server>
  18. http
  19. </server>
  20. # This created a memory leak in 7.83.1 and earlier
  21. <name>
  22. set CURLOPT_XOAUTH2_BEARER and do connection reuse
  23. </name>
  24. <tool>
  25. lib%TESTNUMBER
  26. </tool>
  27. <command>
  28. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  29. </command>
  30. </client>
  31. # Verify data after the test has been "shot"
  32. <verify>
  33. <protocol>
  34. GET /%TESTNUMBER HTTP/1.1
  35. Host: %HOSTIP:%HTTPPORT
  36. Authorization: Bearer c4e448d652a961fda0ab64f882c8c161d5985f805d45d80c9ddca1
  37. Accept: */*
  38. GET /%TESTNUMBER HTTP/1.1
  39. Host: %HOSTIP:%HTTPPORT
  40. Authorization: Bearer c4e448d652a961fda0ab64f882c8c161d5985f805d45d80c9ddca1
  41. Accept: */*
  42. </protocol>
  43. </verify>
  44. </testcase>