diff options
author | Michael Kaufmann <mail@michael-kaufmann.ch> | 2017-02-18 13:56:56 +0100 |
---|---|---|
committer | Michael Kaufmann <mail@michael-kaufmann.ch> | 2017-02-18 15:04:43 +0100 |
commit | 2f8d0df085519351dbd7123178895ba910d756c1 (patch) | |
tree | 1ec8c16fb218c3dcf26e90d183eb7aad5fecebc2 /tests/data/test715 | |
parent | 13e3a18b345af1a15b892b0bbedfbbff06e10a39 (diff) |
proxy: fix hostname resolution and IDN conversion
Properly resolve, convert and log the proxy host names.
Support the "--connect-to" feature for SOCKS proxies and for passive FTP
data transfers.
Follow-up to cb4e2be
Reported-by: Jay Satiro
Fixes https://github.com/curl/curl/issues/1248
Diffstat (limited to 'tests/data/test715')
-rwxr-xr-x | tests/data/test715 | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/tests/data/test715 b/tests/data/test715 new file mode 100755 index 000000000..ffcfc7e3e --- /dev/null +++ b/tests/data/test715 @@ -0,0 +1,66 @@ +<testcase> +#based off test 712 +<info> +<keywords> +FTP +PASV +RETR +HTTP +HTTP CONNECT +proxytunnel +SOCKS5 +CURLOPT_CONNECT_TO +</keywords> +</info> +# +# Server-side +<reply> +<connect> +HTTP/1.1 200 Connection established + +</connect> + +<data nocheck="yes"> +silly content +</data> + +<datacheck> +HTTP/1.1 200 Connection established + +HTTP/1.1 200 Connection established + +silly content +</datacheck> +</reply> + +# +# Client-side +<client> +<server> +ftp +http-proxy +socks5 +</server> + <name> +FTP fetch with --preproxy, --proxy and --connect-to + </name> + <command> +ftp://ftp.example.com.715/715 --connect-to ::connect.example.com.715:%FTPPORT --proxytunnel --proxy %HOSTIP:%PROXYPORT --preproxy socks5://%HOSTIP:%SOCKSPORT +</command> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<protocol> +USER anonymous
+PASS ftp@example.com
+PWD
+EPSV
+TYPE I
+SIZE 715
+RETR 715
+QUIT
+</protocol> +</verify> +</testcase> |