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>
|
|
|
|
<data nocheck=true>
|
|
|
|
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>
|
2004-09-08 16:08:38 +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
|
2004-09-08 16:08:38 +08:00
|
|
|
http://127.0.0.1:%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
|
2004-09-08 16:08:38 +08:00
|
|
|
Host: 127.0.0.1:%HTTPPORT
|
2004-02-09 20:46:41 +08:00
|
|
|
Accept: */*
|
2001-06-14 20:05:30 +08:00
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|