###############################################################################
# DESCRIPTION
#	Check directory redirect, we set a different port in the Host header
#
# AUTHOR
#	Eduardo Silva <edsiper@gmail.com>
#
# DATE
#	May 19 2012
#
# COMMENTS
#	Server must return a 301 moved permanently header.
###############################################################################


INCLUDE __CONFIG
INCLUDE __MACROS

CLIENT
_CALL INIT
_CALL TESTDOC_GETDATE

_REQ $HOST $PORT
__GET /img $HTTPVER
__Host: $HOST:12345
__If-Modified-Since: $TEST_DOC_HTTPDATE
__Connection: close
__
_EXPECT . "HTTP/1.1 301 Moved Permanently"
_EXPECT . "Content-Length: 0"
_EXPECT . "Location: http://$HOST:12345/img/
_WAIT
END
