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

<reply>
<data crlf="headers">
HTTP/1.1 401 Authorization Required
WWW-Authenticate: Digest realm="testrealm%0a%0d%hex[%C3%81]hex%", nonce="1053604145"
Content-Length: 4

hej
</data>

<data1000 crlf="headers">
HTTP/1.1 200 OK
Content-Length: 23

This IS the real page!
</data1000>

<datacheck crlf="headers">
HTTP/1.1 401 Authorization Required
WWW-Authenticate: Digest realm="testrealm%0a%0d%hex[%C3%81]hex%", nonce="1053604145"
Content-Length: 4

HTTP/1.1 200 OK
Content-Length: 23

This IS the real page!
</datacheck>
</reply>

<client>
<server>
http
</server>
<features>
!SSPI
crypto
digest
</features>
<name>
HTTP Digest with CRLF and non-ASCII in username, non-ASCII in realm
</name>
<command>
http://hello%0a%0d%c3%a9:there@%HOSTIP:%HTTPPORT/ --digest
</command>
</client>

<verify>
<protocol crlf="headers">
GET / HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*

GET / HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Authorization: Digest username="hello%0A%0D%hex[%C3%A9]hex%", realm="testrealm%0a%0d%hex[%C3%81]hex%", nonce="1053604145", uri="/", response="cdc6cf8d0f1ff0d4fa29399d6b57889f"
User-Agent: curl/%VERSION
Accept: */*

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