test1915 839 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HSTS
  6. CURLOPT_HSTSREADFUNCTION
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. </reply>
  12. # Client-side
  13. <client>
  14. <features>
  15. HSTS
  16. http
  17. </features>
  18. <server>
  19. none
  20. </server>
  21. # require debug so that alt-svc can work over plain old HTTP
  22. <name>
  23. HSTS read/write callbacks
  24. </name>
  25. <tool>
  26. lib%TESTNUMBER
  27. </tool>
  28. <command>
  29. http://%HOSTIP:%NOLISTENPORT/not-there/%TESTNUMBER
  30. </command>
  31. </client>
  32. # Verify data after the test has been "shot"
  33. <verify>
  34. # 7 CURLE_COULDNT_CONNECT (expected since there's nothing listening there)
  35. # 42 CURLE_ABORTED_BY_CALLBACK
  36. <errorcode>
  37. 42
  38. </errorcode>
  39. <stdout>
  40. [0/4] 1.example.com 20370320 01:02:03
  41. [1/4] 2.example.com 20370320 03:02:01
  42. [2/4] 3.example.com 20370319 01:02:03
  43. [3/4] 4.example.com unlimited
  44. First request returned 7
  45. Second request returned 42
  46. </stdout>
  47. </verify>
  48. </testcase>