2007-01-23 10:25:56 +08:00
|
|
|
<testcase>
|
2008-02-09 10:08:34 +08:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
2008-09-30 06:44:04 +08:00
|
|
|
HTTP proxy
|
2008-02-09 10:08:34 +08:00
|
|
|
followlocation
|
|
|
|
</keywords>
|
|
|
|
</info>
|
2008-07-31 10:51:44 +08:00
|
|
|
|
2004-09-11 04:58:51 +08:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 301 OK swsbounce
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2004-09-11 04:58:51 +08:00
|
|
|
Content-Length: 4
|
2021-03-13 00:38:26 +08:00
|
|
|
Location: http://yet.another.host/%TESTNUMBER
|
2004-09-11 04:58:51 +08:00
|
|
|
|
|
|
|
moo
|
|
|
|
</data>
|
|
|
|
<data1>
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2004-09-11 04:58:51 +08:00
|
|
|
Content-Length: 4
|
|
|
|
|
|
|
|
moo
|
|
|
|
</data1>
|
|
|
|
<datacheck>
|
|
|
|
HTTP/1.1 301 OK swsbounce
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2004-09-11 04:58:51 +08:00
|
|
|
Content-Length: 4
|
2021-03-13 00:38:26 +08:00
|
|
|
Location: http://yet.another.host/%TESTNUMBER
|
2004-09-11 04:58:51 +08:00
|
|
|
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2004-09-11 04:58:51 +08:00
|
|
|
Content-Length: 4
|
|
|
|
|
|
|
|
moo
|
|
|
|
</datacheck>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP replace Host: when following Location: to new host
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://deathstar.another.galaxy/%TESTNUMBER -L -H "Host: another.visitor.stay.a.while.stay.foreeeeeever" --proxy http://%HOSTIP:%HTTPPORT
|
2004-09-11 04:58:51 +08:00
|
|
|
</command>
|
2019-10-15 04:29:19 +08:00
|
|
|
<features>
|
|
|
|
proxy
|
|
|
|
</features>
|
2005-01-26 05:45:03 +08:00
|
|
|
</client>
|
2004-09-11 04:58:51 +08:00
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET http://deathstar.another.galaxy/%TESTNUMBER HTTP/1.1
|
2015-03-12 07:50:46 +08:00
|
|
|
Host: another.visitor.stay.a.while.stay.foreeeeeever
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2004-09-11 04:58:51 +08:00
|
|
|
Accept: */*
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2004-09-11 04:58:51 +08:00
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET http://yet.another.host/%TESTNUMBER HTTP/1.1
|
2004-09-11 04:58:51 +08:00
|
|
|
Host: yet.another.host
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2004-09-11 04:58:51 +08:00
|
|
|
Accept: */*
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2004-09-11 04:58:51 +08:00
|
|
|
|
|
|
|
</protocol>
|
|
|
|
|
|
|
|
</verify>
|
2007-01-23 10:25:56 +08:00
|
|
|
</testcase>
|