2011-05-19 03:48:14 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
multi
|
|
|
|
CURLOPT_OPENSOCKETFUNCTION
|
|
|
|
CURLOPT_CLOSESOCKETFUNCTION
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
2014-02-01 07:52:08 +08:00
|
|
|
HTTP/1.1 302 eat this!
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-02-01 07:52:08 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Location: this-is-the-first.html
|
|
|
|
Content-Length: 0
|
|
|
|
Connection: close
|
|
|
|
|
2011-05-19 03:48:14 +08:00
|
|
|
</data>
|
|
|
|
<datacheck>
|
|
|
|
[OPEN] counter: 1
|
2014-02-01 07:52:08 +08:00
|
|
|
HTTP/1.1 302 eat this!
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-02-01 07:52:08 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Location: this-is-the-first.html
|
|
|
|
Content-Length: 0
|
|
|
|
Connection: close
|
|
|
|
|
2011-05-19 03:48:14 +08:00
|
|
|
[CLOSE] counter: 1
|
|
|
|
</datacheck>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<features>
|
|
|
|
http
|
|
|
|
</features>
|
|
|
|
# tool is what to use instead of 'curl'
|
|
|
|
<tool>
|
2021-03-13 00:38:26 +08:00
|
|
|
lib%TESTNUMBER
|
2011-05-19 03:48:14 +08:00
|
|
|
</tool>
|
|
|
|
|
2023-10-04 17:35:54 +08:00
|
|
|
<name>
|
2011-05-19 03:48:14 +08:00
|
|
|
socket open/close callbacks
|
2023-10-04 17:35:54 +08:00
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
2011-05-19 03:48:14 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2011-05-19 03:48:14 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|