2016-05-08 21:11:10 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
followlocation
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 hello
|
|
|
|
Connection: close
|
|
|
|
Content-Length: 4
|
|
|
|
|
|
|
|
hej
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP URL with http:/ (one slash!)
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http:/%HOSTIP:%HTTPPORT/want/%TESTNUMBER
|
2016-05-08 21:11:10 +08:00
|
|
|
</command>
|
2018-07-20 17:00:57 +08:00
|
|
|
<setenv>
|
|
|
|
# Needed for MSYS2 to not treat the argument as a POSIX path list
|
|
|
|
# that has to be converted to Windows paths
|
|
|
|
MSYS2_ARG_CONV_EXCL=http:/
|
|
|
|
</setenv>
|
2016-05-08 21:11:10 +08:00
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /want/%TESTNUMBER HTTP/1.1
|
2016-05-08 21:11:10 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2016-05-08 21:11:10 +08:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|