2007-01-23 05:25:56 +03:00
|
|
|
<testcase>
|
2008-07-31 06:51:44 +04:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
followlocation
|
|
|
|
--write-out
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
2004-10-19 19:30:08 +04:00
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
2009-01-08 00:57:26 +03:00
|
|
|
<data nocheck="yes">
|
2004-10-19 19:30:08 +04:00
|
|
|
HTTP/1.1 302 OK swsbounce swsclose
|
2020-02-28 17:00:03 +03:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2004-10-19 19:30:08 +04:00
|
|
|
Content-Length: 8
|
|
|
|
Connection: close
|
2021-03-12 19:38:26 +03:00
|
|
|
Location: ./%TESTNUMBER
|
2004-10-19 19:30:08 +04:00
|
|
|
|
|
|
|
monster
|
|
|
|
</data>
|
2009-01-08 00:57:26 +03:00
|
|
|
<data1 nocheck="yes">
|
2004-10-19 19:30:08 +04:00
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 17:00:03 +03:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2004-10-19 19:30:08 +04:00
|
|
|
Content-Length: 8
|
|
|
|
Connection: close
|
|
|
|
|
|
|
|
monster
|
|
|
|
</data1>
|
|
|
|
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
2023-10-04 12:35:54 +03:00
|
|
|
<name>
|
2004-10-19 19:30:08 +04:00
|
|
|
HTTP GET -w num_connects with redirected fetch (2 connects)
|
2023-10-04 12:35:54 +03:00
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-12 19:38:26 +03:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w "%{num_connects}\n" -L
|
2004-10-19 19:30:08 +04:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-12 19:38:26 +03:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2007-09-14 23:32:31 +04:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 14:45:24 +03:00
|
|
|
User-Agent: curl/%VERSION
|
2004-10-19 19:30:08 +04:00
|
|
|
Accept: */*
|
|
|
|
|
2021-03-12 19:38:26 +03:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2007-09-14 23:32:31 +04:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 14:45:24 +03:00
|
|
|
User-Agent: curl/%VERSION
|
2004-10-19 19:30:08 +04:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
|
|
|
|
<stdout>
|
|
|
|
HTTP/1.1 302 OK swsbounce swsclose
|
2020-02-28 17:00:03 +03:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2004-10-19 19:30:08 +04:00
|
|
|
Content-Length: 8
|
|
|
|
Connection: close
|
2021-03-12 19:38:26 +03:00
|
|
|
Location: ./%TESTNUMBER
|
2004-10-19 19:30:08 +04:00
|
|
|
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 17:00:03 +03:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2004-10-19 19:30:08 +04:00
|
|
|
Content-Length: 8
|
|
|
|
Connection: close
|
|
|
|
|
|
|
|
monster
|
|
|
|
2
|
|
|
|
</stdout>
|
|
|
|
|
|
|
|
</verify>
|
2007-01-23 05:25:56 +03:00
|
|
|
</testcase>
|