curl/tests/data/test2107
alhudz 62b118cf22
http-proxy: verify CONNECT response headers
Verifed by test 2107

Closes #21927
2026-06-09 13:56:28 +02:00

49 lines
673 B
XML

<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
HTTP
HTTP CONNECT
HTTP proxy
proxytunnel
</keywords>
</info>
# Server-side
<reply>
<data nocheck="yes">
HTTP/1.1 200 OK
Content-Length: 0
</data>
<connect nocheck="yes">
HTTP/1.1 200 OK%CR
X-Evil: he%hex[%00]hex%llo%CR
%CR
</connect>
</reply>
# Client-side
<client>
<server>
http
http-proxy
</server>
<features>
proxy
</features>
<name>
HTTP CONNECT response with a nul byte in a header
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -p -x http://%HOSTIP:%PROXYPORT
</command>
</client>
# Verify data after the test has been "shot"
<verify>
<errorcode>
8
</errorcode>
</verify>
</testcase>