2007-01-23 10:25:56 +08:00
|
|
|
<testcase>
|
2005-04-23 05:59:08 +08:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
--write-out
|
|
|
|
</keywords>
|
|
|
|
</info>
|
2008-07-31 10:51:44 +08:00
|
|
|
|
2003-01-30 13:03:19 +08:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
2009-01-08 05:57:26 +08:00
|
|
|
<data nocheck="yes">
|
2003-07-20 07:57:08 +08:00
|
|
|
HTTP/1.1 200 OK swsclose
|
2003-01-30 13:03:19 +08:00
|
|
|
Funny-head: yesyes
|
|
|
|
Content-Type: text/html; charset=ISO-8859-4
|
|
|
|
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
2003-05-01 04:25:39 +08:00
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
2003-01-30 13:03:19 +08:00
|
|
|
<name>
|
|
|
|
HTTP content-type with spaces in
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
-w "%{content_type}\n" http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o log/out%TESTNUMBER
|
2003-01-30 13:03:19 +08:00
|
|
|
</command>
|
2006-02-23 07:55:28 +08:00
|
|
|
</client>
|
2003-01-30 13:03:19 +08:00
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
2007-01-23 10:25:56 +08:00
|
|
|
<stdout mode="text">
|
2003-01-30 13:03:19 +08:00
|
|
|
text/html; charset=ISO-8859-4
|
2006-02-23 07:55:28 +08:00
|
|
|
</stdout>
|
2003-01-30 13:03:19 +08:00
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2007-09-15 03:32:31 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2004-02-09 20:46:41 +08:00
|
|
|
Accept: */*
|
2003-01-30 13:03:19 +08:00
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
2007-01-23 10:25:56 +08:00
|
|
|
</testcase>
|