HTTP
#
# This reproduces issue #3340
#
# Server-side
HTTP/1.1 302 redirect to broken URL
Date: Thu, 17 Mar 2016 14:41:00 GMT
Server: test-server/fake
Content-Type: text/plain; charset=US-ASCII
X-Special: swsclose
Location: h ttp://1.2.4.5/test
Content-Length: 0
Connection: close
# Client-side
http
# tool is what to use instead of 'curl'
lib1518
Extract Location: with broken absolute URL
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
#
# Verify data after the test has been "shot"
res: 0
status: 302
redirects: 0
effectiveurl: http://%HOSTIP:%HTTPPORT/%TESTNUMBER
redirecturl: http://%HOSTIP:%HTTPPORT/h%20ttp://1.2.4.5/test
0