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