test1915 981 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. %if large-time
  41. [0/4] 1.example.com 25250320 01:02:03
  42. [1/4] 2.example.com 25250320 03:02:01
  43. [2/4] 3.example.com 25250319 01:02:03
  44. %else
  45. [0/4] 1.example.com 20370320 01:02:03
  46. [1/4] 2.example.com 20370320 03:02:01
  47. [2/4] 3.example.com 20370319 01:02:03
  48. %endif
  49. [3/4] 4.example.com unlimited
  50. First request returned 7
  51. Second request returned 42
  52. </stdout>
  53. </verify>
  54. </testcase>