2007-01-23 10:25:56 +08:00
|
|
|
<testcase>
|
2005-04-17 07:15:19 +08:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP custom request
|
|
|
|
config file
|
|
|
|
</keywords>
|
|
|
|
</info>
|
2001-06-14 20:05:30 +08:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Funny-head: yesyes
|
2003-07-20 07:57:08 +08:00
|
|
|
Content-Length: 27
|
2001-06-14 20:05:30 +08:00
|
|
|
|
|
|
|
This is the proof it works
|
|
|
|
</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>
|
|
|
|
HTTP with config file on stdin
|
|
|
|
</name>
|
|
|
|
<stdin>
|
|
|
|
#
|
|
|
|
# Use a silly request without '--':
|
|
|
|
request MOOO
|
|
|
|
#
|
|
|
|
# Set the user-agent using a short-option:
|
|
|
|
-A "agent007 license to drill\t"
|
|
|
|
#
|
|
|
|
# long option *with* '--':
|
|
|
|
--max-time 180
|
|
|
|
</stdin>
|
|
|
|
<command>
|
2004-09-08 16:08:38 +08:00
|
|
|
-K - %HOSTIP:%HTTPPORT/that.site.com/17
|
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>
|
|
|
|
<protocol>
|
|
|
|
MOOO /that.site.com/17 HTTP/1.1
|
|
|
|
User-Agent: agent007 license to drill
|
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>
|