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

# Server-side
<reply>
<data nocheck="yes">
HTTP/1.1 200 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Length: 2
Connection: close
Content-Type: text/plain

OK
</data>
</reply>

# Client-side
<client>
<server>
http
</server>
<name>
--term falls back to the default User-Agent when no metadata is available
</name>
<setenv>
TERM
COLUMNS
LINES
COLORTERM
TERM_GRAPHICS
LANG
</setenv>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --term
</command>
<stdin nonewline="yes">

</stdin>
</client>

# Verify data after the test has been "shot"
<verify>
<strippart>
s/ \(cols=\d+; lines=\d+; / (/;
s/ \(cols=\d+; lines=\d+\)//;
</strippart>
<protocol crlf="headers">
GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION (attached=false)
Accept: */*

</protocol>
</verify>
</testcase>
