mirror of
https://github.com/curl/curl.git
synced 2026-07-22 07:37:16 +03:00
37 lines
556 B
XML
37 lines
556 B
XML
<?xml version="1.0" encoding="US-ASCII"?>
|
|
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
HTTP GET
|
|
HTTP added headers
|
|
</keywords>
|
|
</info>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
http
|
|
</server>
|
|
<name>
|
|
Reject a custom request header larger than the request buffer
|
|
</name>
|
|
<stdin>
|
|
header "X-Large: %repeat[1048576 x x]%"
|
|
</stdin>
|
|
<command>
|
|
-K - http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
# 100 == CURLE_TOO_LARGE
|
|
<errorcode>
|
|
100
|
|
</errorcode>
|
|
<limits>
|
|
Maximum allocated: 6000000
|
|
</limits>
|
|
</verify>
|
|
</testcase>
|