mirror of
https://github.com/moparisthebest/curl
synced 2024-12-25 17:48:48 -05:00
3c9066fce5
Update smbserver.py and negtelnetserver.py to be compatible with Python 3 while staying backwards-compatible to support Python 2. Fix string encoding and handling of echoed and transferred data. Tested with both Python 2.7.17 and Python 3.7.7 Reported-by: Daniel Stenberg Assisted-by: Kamil Dudka Reviewed-by: Marcel Raad Fixes #5104 Closes #5110
44 lines
465 B
Plaintext
44 lines
465 B
Plaintext
<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 nonewline="yes">
|
|
test1452
|
|
</stdout>
|
|
</verify>
|
|
</testcase>
|