2005-04-17 01:15:19 +02:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP custom request
|
|
|
|
config file
|
|
|
|
</keywords>
|
|
|
|
</info>
|
2001-06-14 14:05:30 +02:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Funny-head: yesyes
|
2003-07-20 01:57:08 +02:00
|
|
|
Content-Length: 27
|
2001-06-14 14:05:30 +02:00
|
|
|
|
|
|
|
This is the proof it works
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
2003-04-30 22:25:39 +02:00
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
2001-06-14 14:05:30 +02: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 10:08:38 +02:00
|
|
|
-K - %HOSTIP:%HTTPPORT/that.site.com/17
|
2001-06-14 14:05:30 +02:00
|
|
|
</command>
|
2005-01-25 22:45:03 +01:00
|
|
|
</client>
|
2001-06-14 14:05:30 +02: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
|
2004-09-08 10:08:38 +02:00
|
|
|
Host: 127.0.0.1:%HTTPPORT
|
2001-06-14 14:05:30 +02:00
|
|
|
Pragma: no-cache
|
2004-02-09 13:46:41 +01:00
|
|
|
Accept: */*
|
2001-06-14 14:05:30 +02:00
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|