<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
HTTP
HTTP GET
--styled-output
</keywords>
</info>

#
# Server-side
<reply>
<data nocheck="yes">
HTTP/1.1 301 Moved Permanently
Date: Tue, 09 Nov 2010 14:49:00 GMT
Location: /moved/here
Content-Length: 6
Connection: close

-foo-
</data>
</reply>

#
# Client-side
<client>
<server>
http
</server>
# this test needs to be a Debug build in order to fake it being a TTY output
<features>
Debug
!win32
</features>
<setenv>
VTE_VERSION=4802
CURL_ISATTY=yes
</setenv>
<name>
--styled-output makes header names bold and Location a link
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --show-headers
</command>
</client>

#
# Verify data after the test has been "shot"
<verify>
<protocol crlf="headers">
GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*

</protocol>
<stdout>
HTTP/1.1 301 Moved Permanently
%hex[%1b]hex%[1mDate%hex[%1b]hex%[0m: Tue, 09 Nov 2010 14:49:00 GMT
%hex[%1b]hex%[1mLocation%hex[%1b]hex%[0m: %hex[%1b]hex%]8;;http://%HOSTIP:%HTTPPORT/moved/here%hex[%1b%5c]hex%/moved/here
%hex[%1b]hex%]8;;%hex[%1b%5c]hex%%hex[%1b]hex%[1mContent-Length%hex[%1b]hex%[0m: 6
%hex[%1b]hex%[1mConnection%hex[%1b]hex%[0m: close

-foo-
</stdout>
</verify>
</testcase>
