mirror of
https://github.com/curl/curl.git
synced 2026-06-18 17:35:43 +03:00
- `N byte` -> `N-byte` or `N bytes`. - INTERNALS.md: language tweaks. - schannel: language tweak in comment/error message. - socks_gssapi, socks_sspi: simplify composing an error message. (at a cost of 8 extra constant string bytes.) - m4/curl-compilers.m4: fix typo in link (in comment). - contrithanks.sh: fix indent, drop stray `;` terminator. - lib, src, tests: drop/fix a bunch of badwords. - fix typos in comments. - fix indent, stray spaces. Some of these spotted by GitHub Code Quality and Copilot Closes #22009
87 lines
2 KiB
XML
87 lines
2 KiB
XML
<?xml version="1.0" encoding="US-ASCII"?>
|
|
<testcase>
|
|
<info>
|
|
<keywords>
|
|
FTP
|
|
HTTPS proxy
|
|
flaky
|
|
</keywords>
|
|
</info>
|
|
|
|
# Server-side
|
|
<reply>
|
|
|
|
# This is the HTTPS proxy response
|
|
<connect crlf="headers">
|
|
HTTP/1.1 200 OK
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
|
Server: test-server/fake
|
|
Content-Type: text/html
|
|
Funny-head: yesyes
|
|
Content-Length: 0
|
|
|
|
</connect>
|
|
|
|
# This is the FTP server response. The Life and Adventures of Robinson Crusoe
|
|
<data>
|
|
I was born in the year 1632, in the city of York, of a good family, though not
|
|
of that country, myfather being a foreigner of Bremen, who settled first at
|
|
Hull. He got a good estate by merchandise,and leaving off his trade, lived
|
|
afterwards at York, from whence he had married my mother, whoserelations were
|
|
named Robinson, a very good family in that country, and from whom I was
|
|
calledRobinson Kreutznaer; but, by the usual corruption of words in England,
|
|
we are now called-nay wecall ourselves and write our name-Crusoe; and so my
|
|
companions always called me.
|
|
</data>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
ftp
|
|
https-proxy
|
|
</server>
|
|
<name>
|
|
FTP through HTTPS-proxy
|
|
</name>
|
|
<command>
|
|
-p -x https://%HOSTIP:%HTTPSPROXYPORT ftp://ftp.site.thru.https.proxy:%FTPPORT/%TESTNUMBER --proxy-insecure
|
|
</command>
|
|
<features>
|
|
http
|
|
proxy
|
|
</features>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
|
|
# The second CONNECT is made to the dynamic port number the FTP server
|
|
# opens for us, so we cannot compare with a known pre-existing number.
|
|
<strippart>
|
|
s/((https.proxy):(\d+))/$2:12345/
|
|
</strippart>
|
|
<proxy crlf="headers">
|
|
CONNECT ftp.site.thru.https.proxy:12345 HTTP/1.1
|
|
Host: ftp.site.thru.https.proxy:12345
|
|
User-Agent: curl/%VERSION
|
|
Proxy-Connection: Keep-Alive
|
|
|
|
CONNECT ftp.site.thru.https.proxy:12345 HTTP/1.1
|
|
Host: ftp.site.thru.https.proxy:12345
|
|
User-Agent: curl/%VERSION
|
|
Proxy-Connection: Keep-Alive
|
|
|
|
</proxy>
|
|
<protocol crlf="yes">
|
|
USER anonymous
|
|
PASS ftp@example.com
|
|
PWD
|
|
EPSV
|
|
TYPE I
|
|
SIZE %TESTNUMBER
|
|
RETR %TESTNUMBER
|
|
QUIT
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|