test417 (776B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTPS 5 --write-out 6 %{certs} 7 </keywords> 8 </info> 9 10 # Server-side 11 <reply> 12 <data nocheck="yes"> 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 18 nomnom 19 </data> 20 </reply> 21 22 # Client-side 23 <client> 24 <features> 25 SSL 26 !wolfssl 27 !mbedtls 28 </features> 29 <server> 30 http 31 https 32 </server> 33 <name> 34 --write-out with %{certs} 35 </name> 36 <command option="no-include"> 37 --insecure https://%HOSTIP:%HTTPSPORT/%TESTNUMBER -w '%{certs}' 38 </command> 39 </client> 40 <verify> 41 <protocol> 42 GET /%TESTNUMBER HTTP/1.1 43 Host: %HOSTIP:%HTTPSPORT 44 User-Agent: curl/%VERSION 45 Accept: */* 46 47 </protocol> 48 <stripfile> 49 s/^(.*):(.*)[\r\n]*// 50 </stripfile> 51 <stdout> 52 nomnom 53 %strippemfile[%CERTDIR/certs/test-localhost.crt]strippemfile% 54 </stdout> 55 56 </verify> 57 58 </testcase>