mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
3fd80c7b59
The threee tags `<name>`, `</name>` and `<command>` were frequently used with a leading space that this removes. The reason this habbit is so widespread in testcases is probably that they have been copy and pasted. Hence, fixing them all now might curb this practice from now on. Closes #12028
62 lines
894 B
Plaintext
62 lines
894 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
HTTP proxy
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
<connect>
|
|
HTTP/1.1 503 no just no
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
|
Server: test-server/fake
|
|
Accept-Ranges: bytes
|
|
Content-Length: 6
|
|
Connection: close
|
|
|
|
-foo-
|
|
</connect>
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<features>
|
|
gopher
|
|
dict
|
|
http
|
|
ftp
|
|
imap
|
|
ldap
|
|
mqtt
|
|
pop3
|
|
rtsp
|
|
scp
|
|
sftp
|
|
smb
|
|
smtp
|
|
</features>
|
|
<server>
|
|
http-proxy
|
|
</server>
|
|
<name>
|
|
Refuse tunneling protocols through HTTP proxy
|
|
</name>
|
|
<command>
|
|
-x http://%HOSTIP:%PROXYPORT/%TESTNUMBER -p gopher://127.0.0.1 dict://127.0.0.1 http://moo https://example telnet://another ftp://yes ftps://again imap://more ldap://perhaps mqtt://yes pop3://mail rtsp://harder scp://copy sftp://files smb://wird smtp://send
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
# refused in the CONNECT
|
|
<errorcode>
|
|
56
|
|
</errorcode>
|
|
</verify>
|
|
</testcase>
|