2007-01-23 10:25:56 +08:00
|
|
|
<testcase>
|
2005-04-17 07:15:19 +08:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
--write-out
|
|
|
|
</keywords>
|
|
|
|
</info>
|
2001-06-14 20:05:30 +08:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
2007-01-23 10:25:56 +08:00
|
|
|
<data nocheck="true">
|
2001-06-14 20:05:30 +08:00
|
|
|
HTTP/1.4 200 OK
|
|
|
|
Fake: yes
|
|
|
|
Fake: yes
|
|
|
|
Fake: yes
|
2003-07-20 07:57:08 +08:00
|
|
|
Content-Length: 26
|
2001-06-14 20:05:30 +08:00
|
|
|
|
|
|
|
Repeated nonsense-headers
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
2003-05-01 04:25:39 +08:00
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
2001-06-14 20:05:30 +08:00
|
|
|
<name>
|
|
|
|
--write-out test
|
|
|
|
</name>
|
|
|
|
<command>
|
2007-09-19 04:41:20 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/want/15 --write-out "%{url_effective} %{http_code} %{size_download}\n"
|
2001-06-14 20:05:30 +08:00
|
|
|
</command>
|
2005-01-26 05:45:03 +08:00
|
|
|
</client>
|
2001-06-14 20:05:30 +08:00
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<stdout>
|
|
|
|
HTTP/1.4 200 OK
|
|
|
|
Fake: yes
|
|
|
|
Fake: yes
|
|
|
|
Fake: yes
|
2003-07-20 07:57:08 +08:00
|
|
|
Content-Length: 26
|
2001-06-14 20:05:30 +08:00
|
|
|
|
|
|
|
Repeated nonsense-headers
|
2007-09-15 03:32:31 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/want/15 200 26
|
2001-06-14 20:05:30 +08:00
|
|
|
</stdout>
|
|
|
|
<strip>
|
|
|
|
^User-Agent:.*
|
|
|
|
</strip>
|
|
|
|
<protocol>
|
|
|
|
GET /want/15 HTTP/1.1
|
2007-09-15 03:32:31 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2004-02-09 20:46:41 +08:00
|
|
|
Accept: */*
|
2001-06-14 20:05:30 +08:00
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
2007-01-23 10:25:56 +08:00
|
|
|
</testcase>
|