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

# Server-side
<reply>
<data nocheck="yes">
HTTP/1.1 200 swsclose OK
Content-Length: 6
Transfer-Encoding: identityx

-foo-
</data>
</reply>

# Client-side
<client>
<server>
http
</server>
<name>
Reject unsolicited Transfer-Encoding token with an identity prefix
</name>
# no --tr-encoding, so any transfer-coding other than chunked/identity is
# unsolicited and must be rejected
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -sS
</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>

# CURLE_BAD_CONTENT_ENCODING is 61
<errorcode>
61
</errorcode>
<stderr mode="text">
curl: (61) Unsolicited Transfer-Encoding (identityx) found
</stderr>
</verify>
</testcase>
