mirror of
https://github.com/curl/curl.git
synced 2026-04-14 21:51:41 +03:00
test1714: verify telnet download with --max-filesize
(disabled on Windows because of hangs) Closes #21023
This commit is contained in:
parent
806fd7a0e1
commit
07d109b7c6
2 changed files with 57 additions and 1 deletions
|
|
@ -229,7 +229,7 @@ test1670 test1671 test1672 test1673 \
|
|||
test1680 test1681 test1682 test1683 test1684 \
|
||||
\
|
||||
test1700 test1701 test1702 test1703 test1704 test1705 test1706 test1707 \
|
||||
test1708 test1709 test1710 test1711 test1712 test1713 \
|
||||
test1708 test1709 test1710 test1711 test1712 test1713 test1714 \
|
||||
\
|
||||
test1800 test1801 test1802 test1847 test1848 test1849 test1850 test1851 \
|
||||
\
|
||||
|
|
|
|||
56
tests/data/test1714
Normal file
56
tests/data/test1714
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?xml version="1.0" encoding="US-ASCII"?>
|
||||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
TELNET
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
<reply>
|
||||
<data crlf="headers" nocheck="yes">
|
||||
HTTP/1.0 200 OK swsclose
|
||||
Content-Length: 330000
|
||||
Connection: close
|
||||
|
||||
%repeat[10000 x boring data to send to the client]%
|
||||
</data>
|
||||
</reply>
|
||||
|
||||
<client>
|
||||
<server>
|
||||
http
|
||||
</server>
|
||||
<features>
|
||||
telnet
|
||||
!win32
|
||||
</features>
|
||||
<name>
|
||||
TELNET download with --max-filesize
|
||||
</name>
|
||||
<stdin crlf="headers">
|
||||
GET /this/for/%TESTNUMBER HTTP/1.0
|
||||
|
||||
</stdin>
|
||||
|
||||
<command option="no-output">
|
||||
telnet://%HOSTIP:%HTTPPORT --max-filesize 99995
|
||||
</command>
|
||||
</client>
|
||||
|
||||
<verify>
|
||||
<protocol crlf="headers">
|
||||
GET /this/for/%TESTNUMBER HTTP/1.0
|
||||
|
||||
</protocol>
|
||||
<stdout crlf="headers" nonewline="yes">
|
||||
HTTP/1.0 200 OK swsclose
|
||||
Content-Length: 330000
|
||||
Connection: close
|
||||
|
||||
%repeat[3028 x boring data to send to the client]%
|
||||
</stdout>
|
||||
<errorcode>
|
||||
63
|
||||
</errorcode>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue