mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
To formalize they are now XML-compliant (with some asterisks.) Also to help syntax highlighters work on them to make their content more readable. Also: - Delete empty comment decorations. - GHA/checksrc: simplify XML check. - runtests: fail to load test data with XML prolog missing. Follow-up tobfe6eb1c06#19927 Follow-up to87ba80a6dfCloses #19946
56 lines
919 B
XML
56 lines
919 B
XML
<?xml version="1.0" encoding="US-ASCII"?>
|
|
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTPS
|
|
HTTP GET
|
|
TLS-SRP
|
|
</keywords>
|
|
</info>
|
|
|
|
# Server-side
|
|
<reply>
|
|
<data nocheck="yes">
|
|
%includetext %SRCDIR/data/data%TESTNUMBER.html%
|
|
</data>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
httptls+srp
|
|
</server>
|
|
<features>
|
|
TLS-SRP
|
|
</features>
|
|
<name>
|
|
simple TLS-SRP HTTPS GET, check user in response
|
|
</name>
|
|
<command>
|
|
--insecure --tlsauthtype SRP --tlsuser jsmith --tlspassword abc -A curl-test-suite https://%HOSTIP:%HTTPTLSPORT
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<file name="%LOGDIR/curl%TESTNUMBER.out" crlf="headers">
|
|
HTTP/1.0 200 OK
|
|
Content-type: text/html
|
|
|
|
FINE
|
|
User-Agent: curl-test-suite
|
|
Accept: */*
|
|
|
|
</file>
|
|
<stripfile>
|
|
s/^%LTp%GTConnected as user 'jsmith'.*/FINE/
|
|
s/Protocol version:.*[0-9]//
|
|
s/GNUTLS/GnuTLS/
|
|
s/(AES[-_])\d\d\d([-_]CBC)/$1NNN$2/
|
|
s/^%LT.*\n//
|
|
s/^\n//
|
|
</stripfile>
|
|
</verify>
|
|
|
|
</testcase>
|