2016-01-25 08:37:24 -05:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
CURLOPT_CONNECT_TO
|
2020-02-28 09:00:03 -05:00
|
|
|
--resolve
|
2016-01-25 08:37:24 -05:00
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data nocheck="yes">
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 09:00:03 -05:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2016-01-25 08:37:24 -05:00
|
|
|
Content-Length: 3
|
|
|
|
Content-Type: text/plain
|
|
|
|
|
|
|
|
OK
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
Connect to specific host: Do not mix connections with and without a "connect to host"
|
|
|
|
</name>
|
|
|
|
|
|
|
|
<command>
|
2021-03-12 11:38:26 -05:00
|
|
|
http://www.example.com:%HTTPPORT/%TESTNUMBER --resolve www.example.com:%HTTPPORT:%HOSTIP -w "%{num_connects}\n" --next --resolve -www.example.com:%HTTPPORT --connect-to ::%HOSTIP:%HTTPPORT http://www.example.com:%HTTPPORT/%TESTNUMBER -w "%{num_connects}\n"
|
2016-01-25 08:37:24 -05:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-12 11:38:26 -05:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2016-01-25 08:37:24 -05:00
|
|
|
Host: www.example.com:%HTTPPORT
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2016-01-25 08:37:24 -05:00
|
|
|
Accept: */*
|
|
|
|
|
2021-03-12 11:38:26 -05:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2016-01-25 08:37:24 -05:00
|
|
|
Host: www.example.com:%HTTPPORT
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2016-01-25 08:37:24 -05:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
|
|
|
|
<stdout>
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 09:00:03 -05:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2016-01-25 08:37:24 -05:00
|
|
|
Content-Length: 3
|
|
|
|
Content-Type: text/plain
|
|
|
|
|
|
|
|
OK
|
|
|
|
1
|
|
|
|
OK
|
|
|
|
1
|
|
|
|
</stdout>
|
|
|
|
|
|
|
|
</verify>
|
|
|
|
</testcase>
|