mirror of
https://github.com/moparisthebest/curl
synced 2024-11-16 14:35:03 -05:00
018dd775c8
The purpose with this variable is to provide a port number that is reasonably likely to not have a listener on the local host so that tests can try connect failures against it. It uses port 47 - "reserved" according to IANA. Updated six tests to use it instead of the previous different ports. Assisted-by: Emil Engler Closes #5270
45 lines
568 B
Plaintext
45 lines
568 B
Plaintext
<testcase>
|
|
#based off 19
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
SOCKS4
|
|
connect to non-listen
|
|
FAILURE
|
|
</keywords>
|
|
</info>
|
|
# Server-side
|
|
<reply>
|
|
<data>
|
|
</data>
|
|
# 91 is socks4 failure
|
|
<servercmd>
|
|
response 91
|
|
</servercmd>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
socks4
|
|
</server>
|
|
<features>
|
|
http
|
|
proxy
|
|
</features>
|
|
<name>
|
|
Attempt connect to non-listening HTTP server via SOCKS4 proxy
|
|
</name>
|
|
<command>
|
|
--socks4 %HOSTIP:%SOCKSPORT http://%HOSTIP:%NOLISTENPORT
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<errorcode>
|
|
7
|
|
</errorcode>
|
|
</verify>
|
|
</testcase>
|