test2070 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTPS
  5. HTTP GET
  6. PEM certificate
  7. </keywords>
  8. </info>type
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Tue, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Content-Length: 7
  17. MooMoo
  18. </data>
  19. </reply>
  20. #
  21. # Client-side
  22. <client>
  23. <features>
  24. SSL
  25. Schannel
  26. </features>
  27. <server>
  28. https Server-localhost-sv.pem
  29. </server>
  30. <name>
  31. Ignore certificate revocation "best effort" strategy
  32. </name>
  33. <setenv>
  34. # This test is pointless if we're not using the schannel backend
  35. CURL_SSL_BACKEND=schannel
  36. </setenv>
  37. <command>
  38. --cacert %SRCDIR/certs/EdelCurlRoot-ca.crt --ssl-revoke-best-effort https://localhost:%HTTPSPORT/%TESTNUMBER
  39. </command>
  40. # Ensure that we're running on localhost because we're checking the host name
  41. <precheck>
  42. perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );"
  43. </precheck>
  44. </client>
  45. #
  46. # Verify data after the test has been "shot"
  47. <verify>
  48. <protocol>
  49. GET /%TESTNUMBER HTTP/1.1
  50. Host: localhost:%HTTPSPORT
  51. User-Agent: curl/%VERSION
  52. Accept: */*
  53. </protocol>
  54. </verify>
  55. </testcase>