<?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
</features>
<setenv>
CURL_ISATTY=yes
</setenv>
<name>
--no-styled-output writes plain headers to a terminal
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --show-headers --no-styled-output
</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
Date: Tue, 09 Nov 2010 14:49:00 GMT
Location: /moved/here
Content-Length: 6
Connection: close

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