2019-10-01 15:54:21 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
2020-02-28 22:00:03 +08:00
|
|
|
HTTP proxy
|
2019-10-01 15:54:21 +08:00
|
|
|
followlocation
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 302 OK
|
2021-03-13 00:38:26 +08:00
|
|
|
Location: http://example.net/tes t case=/%TESTNUMBER0002
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2019-10-01 15:54:21 +08:00
|
|
|
Content-Length: 0
|
|
|
|
|
|
|
|
</data>
|
|
|
|
<data2>
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Location: this should be ignored
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2019-10-01 15:54:21 +08:00
|
|
|
Content-Length: 5
|
|
|
|
|
|
|
|
body
|
|
|
|
</data2>
|
|
|
|
<datacheck>
|
|
|
|
HTTP/1.1 302 OK
|
2021-03-13 00:38:26 +08:00
|
|
|
Location: http://example.net/tes t case=/%TESTNUMBER0002
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2019-10-01 15:54:21 +08:00
|
|
|
Content-Length: 0
|
|
|
|
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Location: this should be ignored
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2019-10-01 15:54:21 +08:00
|
|
|
Content-Length: 5
|
|
|
|
|
|
|
|
body
|
|
|
|
</datacheck>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP redirect with whitespace in absolute Location: URL
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://example.com/please/gimme/%TESTNUMBER -L -x http://%HOSTIP:%HTTPPORT
|
2019-10-01 15:54:21 +08:00
|
|
|
</command>
|
2019-10-15 04:29:19 +08:00
|
|
|
<features>
|
|
|
|
proxy
|
|
|
|
</features>
|
2019-10-01 15:54:21 +08:00
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET http://example.com/please/gimme/%TESTNUMBER HTTP/1.1
|
2019-10-01 15:54:21 +08:00
|
|
|
Host: example.com
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2019-10-01 15:54:21 +08:00
|
|
|
Accept: */*
|
|
|
|
Proxy-Connection: Keep-Alive
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET http://example.net/tes%20t%20case=/%TESTNUMBER0002 HTTP/1.1
|
2019-10-01 15:54:21 +08:00
|
|
|
Host: example.net
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2019-10-01 15:54:21 +08:00
|
|
|
Accept: */*
|
|
|
|
Proxy-Connection: Keep-Alive
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|