1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

Fixed some XML syntax issues in the test data

Also, make the ftp server return a canned response that doesn't
cause XML verification problems.  Although the test file format
isn't technically XML, it's still handy to be able to use XML
tools to verify and manipulate them.
This commit is contained in:
Dan Fandrich 2014-01-16 23:41:31 +01:00
parent 7e0c2c47ab
commit 821094ba72
34 changed files with 40 additions and 35 deletions

View File

@ -1,5 +1,5 @@
# http://greenbytes.de/tech/webdav/draft-reschke-http-status-308-latest.html
<testcase>
# http://greenbytes.de/tech/webdav/draft-reschke-http-status-308-latest.html
<info>
<keywords>
HTTP

View File

@ -1,8 +1,8 @@
<testcase>
# Test case inspired by this question on stackoverflow:
#
# http://stackoverflow.com/questions/10017165/use-libcurl-with-bluecoat-cookie-proxy
#
<testcase>
<info>
<keywords>
HTTP

View File

@ -1,5 +1,5 @@
# test case cloned from 1076 and then 302 was replaced with 303
<testcase>
# test case cloned from 1076 and then 302 was replaced with 303
<info>
<keywords>
HTTP

View File

@ -60,7 +60,7 @@ mooo
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -60,7 +60,7 @@ mooo
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -61,7 +61,7 @@ mooo
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -61,7 +61,7 @@ mooo
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -60,7 +60,7 @@ mooo
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -58,7 +58,7 @@ mooo
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -76,7 +76,7 @@ MOOOO
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -76,7 +76,7 @@ MOOOO
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -77,7 +77,7 @@ MOOOO
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -77,7 +77,7 @@ MOOOO
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -76,7 +76,7 @@ MOOOO
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -76,7 +76,7 @@ MOOOO
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -53,7 +53,7 @@ mooo
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -53,7 +53,7 @@ mooo
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -54,7 +54,7 @@ mooo
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -54,7 +54,7 @@ mooo
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -53,7 +53,7 @@ mooo
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -53,7 +53,7 @@ mooo
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -68,7 +68,7 @@ MOOOO
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -68,7 +68,7 @@ MOOOO
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -69,7 +69,7 @@ MOOOO
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -69,7 +69,7 @@ MOOOO
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -68,7 +68,7 @@ MOOOO
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -68,7 +68,7 @@ MOOOO
220- _ _ ____ _
220- ___| | | | _ \| |
220- / __| | | | |_) | |
220- | (__| |_| | _ <| |___
220- | (__| |_| | _ {| |___
220 \___|\___/|_| \_\_____|
331 We are happy you popped in!
230 Welcome you silly person

View File

@ -44,6 +44,7 @@ TZ=GMT
<command>
http://example.com/we/want/1415 -b none -c log/jar1415.txt -x %HOSTIP:%HTTPPORT
</command>
</client>
# Verify data after the test has been "shot"
<verify>

View File

@ -49,6 +49,7 @@ http://%HOSTIP:%HTTPPIPEPORT/
0 1k.txt
0 1k.txt
0 1k.txt
</file>
</client>
# Verify data after the test has been "shot"

View File

@ -50,6 +50,7 @@ blacklist_site 127.0.0.1:%HTTPPIPEPORT
0 1k.txt
0 1k.txt
0 1k.txt
</file>
</client>
# Verify data after the test has been "shot"

View File

@ -49,6 +49,7 @@ http://%HOSTIP:%HTTPPIPEPORT/
0 1k.txt
0 1k.txt
0 1k.txt
</file>
</client>
# Verify data after the test has been "shot"

View File

@ -49,6 +49,7 @@ http://%HOSTIP:%HTTPPIPEPORT/
10 alphabet.txt
10 alphabet.txt
10 alphabet.txt
</file>
</client>
# Verify data after the test has been "shot"

View File

@ -71,13 +71,13 @@ Content-type: text/html
<h5>If your browser supports session resuming, then you should see the same session ID, when you press the <b>reload</b> button.</h5>
<p>Connected as user 'jsmith'.</p>
<P>
<TABLE border=1><TR><TD>
<TABLE border=1><TR><TD></TD></TR>
<TR><TD>Key Exchange:</TD><TD>SRP</TD></TR>
<TR><TD>Compression</TD><TD>NULL</TD></TR>
<TR><TD>Cipher</TD><TD>AES-128-CBC</TD></TR>
<TR><TD>MAC</TD><TD>SHA1</TD></TR>
<TR><TD>Ciphersuite</TD><TD>SRP_SHA_AES_128_CBC_SHA1</TD></TR></p></TABLE>
<PRE>
Host: %HOSTIP:%HTTPTLSSRPPORT
Accept: */*
@ -87,8 +87,8 @@ Accept: */*
</file>
<stripfile>
s/^<p>Session ID:.*//
s/^<hr><P>Your HTTP header was:.*//
s/Protocol version:.*//
s/^<hr><P>Your HTTP header was:<PRE>.*/<PRE>/
s/Protocol version:.*[0-9]//
</stripfile>
</verify>

View File

@ -559,7 +559,7 @@ sub protocolsetup {
'220- _ _ ____ _ '."\r\n",
'220- ___| | | | _ \| | '."\r\n",
'220- / __| | | | |_) | | '."\r\n",
'220- | (__| |_| | _ <| |___ '."\r\n",
'220- | (__| |_| | _ {| |___ '."\r\n",
'220 \___|\___/|_| \_\_____|'."\r\n")
);
}
@ -585,7 +585,7 @@ sub protocolsetup {
' _ _ ____ _ '."\r\n",
' ___| | | | _ \| | '."\r\n",
' / __| | | | |_) | | '."\r\n",
' | (__| |_| | _ <| |___ '."\r\n",
' | (__| |_| | _ {| |___ '."\r\n",
' \___|\___/|_| \_\_____|'."\r\n",
'+OK cURL POP3 server ready to serve '."\r\n")
);
@ -619,7 +619,7 @@ sub protocolsetup {
' _ _ ____ _ '."\r\n",
' ___| | | | _ \| | '."\r\n",
' / __| | | | |_) | | '."\r\n",
' | (__| |_| | _ <| |___ '."\r\n",
' | (__| |_| | _ {| |___ '."\r\n",
' \___|\___/|_| \_\_____|'."\r\n",
'* OK cURL IMAP server ready to serve'."\r\n")
);
@ -643,7 +643,7 @@ sub protocolsetup {
'220- _ _ ____ _ '."\r\n",
'220- ___| | | | _ \| | '."\r\n",
'220- / __| | | | |_) | | '."\r\n",
'220- | (__| |_| | _ <| |___ '."\r\n",
'220- | (__| |_| | _ {| |___ '."\r\n",
'220 \___|\___/|_| \_\_____|'."\r\n")
);
}