mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00

Add a basic telnet server for negotiating some telnet options before echoing back any data that's sent to it. Closes #1645
42 lines
447 B
Plaintext
Executable File
42 lines
447 B
Plaintext
Executable File
<testcase>
|
|
<info>
|
|
<keywords>
|
|
TELNET
|
|
UPLOAD
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
<data>
|
|
</data>
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
telnet
|
|
</server>
|
|
<features>
|
|
telnet
|
|
</features>
|
|
<name>
|
|
Basic TELNET negotiation
|
|
</name>
|
|
<stdin>
|
|
test1452
|
|
</stdin>
|
|
<command>
|
|
telnet://%HOSTIP:%NEGTELNETPORT --upload-file -
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<stdout>test1452</stdout>
|
|
</verify>
|
|
</testcase>
|