1<testcase> 2<info> 3<keywords> 4HTTPS 5HTTP GET 6TLS-SRP 7</keywords> 8</info> 9 10# Server-side 11<reply> 12<data nocheck="yes"> 13HTTP/1.0 200 OK 14Content-type: text/html 15 16 17<HTML><BODY> 18<CENTER><H1>This is <a href="http://www.gnu.org/software/gnutls">GNUTLS</a></H1></CENTER> 19 20 21<p>Session ID: <i>003030000100000001000000000000000030330001000000B062410001000000</i></p> 22<h5>If your browser supports session resuming, then you should see the same session ID, when you press the <b>reload</b> button.</h5> 23<p>Connected as user 'jsmith'.</p> 24<P> 25<TABLE border=1><TR><TD>Protocol version:</TD><TD>TLS1.2</TD></TR> 26<TR><TD>Key Exchange:</TD><TD>SRP</TD></TR> 27<TR><TD>Compression</TD><TD>NULL</TD></TR> 28<TR><TD>Cipher</TD><TD>AES-128-CBC</TD></TR> 29<TR><TD>MAC</TD><TD>SHA1</TD></TR> 30<TR><TD>Ciphersuite</TD><TD>SRP_SHA_AES_128_CBC_SHA1</TD></TR></p></TABLE> 31<hr><P>Your HTTP header was:<PRE>User-Agent: curl/7.21.4-DEV (x86_64-apple-darwin10.5.0) libcurl/7.21.4-DEV GnuTLS/2.10.4 zlib/1.2.5 libidn/1.19 32Host: localhost:9011 33Accept: */* 34 35</PRE></P> 36</BODY></HTML> 37 38</data> 39</reply> 40 41# Client-side 42<client> 43<server> 44http+tls-srp 45</server> 46<features> 47TLS-SRP 48</features> 49 <name> 50simple TLS-SRP HTTPS GET, check user in response 51 </name> 52<command> 53--insecure --tlsauthtype SRP --tlsuser jsmith --tlspassword abc https://%HOSTIP:%HTTPTLSSRPPORT 54</command> 55</client> 56 57# Verify data after the test has been "shot" 58<verify> 59<protocol> 60</protocol> 61<file name="log/curl320.out" mode="text"> 62HTTP/1.0 200 OK 63Content-type: text/html 64 65 66<HTML><BODY> 67<CENTER><H1>This is <a href="http://www.gnu.org/software/gnutls">GNUTLS</a></H1></CENTER> 68 69 70 71<h5>If your browser supports session resuming, then you should see the same session ID, when you press the <b>reload</b> button.</h5> 72<p>Connected as user 'jsmith'.</p> 73<P> 74<TABLE border=1><TR><TD> 75<TR><TD>Key Exchange:</TD><TD>SRP</TD></TR> 76<TR><TD>Compression</TD><TD>NULL</TD></TR> 77<TR><TD>Cipher</TD><TD>AES-128-CBC</TD></TR> 78<TR><TD>MAC</TD><TD>SHA1</TD></TR> 79<TR><TD>Ciphersuite</TD><TD>SRP_SHA_AES_128_CBC_SHA1</TD></TR></p></TABLE> 80 81Host: %HOSTIP:%HTTPTLSSRPPORT 82Accept: */* 83 84</PRE></P> 85</BODY></HTML> 86 87</file> 88<stripfile> 89s/^<p>Session ID:.*// 90s/^<hr><P>Your HTTP header was:.*// 91s/Protocol version:.*// 92</stripfile> 93</verify> 94 95</testcase> 96