xref: /third_party/curl/tests/data/test563 (revision 13498266)
113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciFTP
513498266Sopenharmony_ciCURLOPT_PORT
613498266Sopenharmony_ciHTTP proxy
713498266Sopenharmony_ci</keywords>
813498266Sopenharmony_ci</info>
913498266Sopenharmony_ci
1013498266Sopenharmony_ci# Server-side
1113498266Sopenharmony_ci<reply>
1213498266Sopenharmony_ci<data nocheck="yes">
1313498266Sopenharmony_ciHTTP/1.1 200 OK swsclose
1413498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT
1513498266Sopenharmony_ciServer: test-server/fake
1613498266Sopenharmony_ciAccept-Ranges: bytes
1713498266Sopenharmony_ciContent-Length: 6
1813498266Sopenharmony_ci
1913498266Sopenharmony_cihello
2013498266Sopenharmony_ci</data>
2113498266Sopenharmony_ci</reply>
2213498266Sopenharmony_ci
2313498266Sopenharmony_ci# Client-side
2413498266Sopenharmony_ci<client>
2513498266Sopenharmony_ci<server>
2613498266Sopenharmony_cihttp
2713498266Sopenharmony_ciftp
2813498266Sopenharmony_ci</server>
2913498266Sopenharmony_ci<tool>
3013498266Sopenharmony_cilib562
3113498266Sopenharmony_ci</tool>
3213498266Sopenharmony_ci<name>
3313498266Sopenharmony_ciFTP type=A URL and CURLOPT_PORT set and proxy
3413498266Sopenharmony_ci</name>
3513498266Sopenharmony_ci<features>
3613498266Sopenharmony_ciproxy
3713498266Sopenharmony_ci</features>
3813498266Sopenharmony_ci<setenv>
3913498266Sopenharmony_ciftp_proxy=http://%HOSTIP:%HTTPPORT/
4013498266Sopenharmony_ci</setenv>
4113498266Sopenharmony_ci# note that we need quotes around the URL below to make sure the shell doesn't
4213498266Sopenharmony_ci# treat the semicolon as a separator!
4313498266Sopenharmony_ci<command>
4413498266Sopenharmony_ci"ftp://%HOSTIP:23456/%TESTNUMBER;type=A" %FTPPORT
4513498266Sopenharmony_ci</command>
4613498266Sopenharmony_ci
4713498266Sopenharmony_ci</client>
4813498266Sopenharmony_ci
4913498266Sopenharmony_ci# Verify data after the test has been "shot"
5013498266Sopenharmony_ci<verify>
5113498266Sopenharmony_ci<protocol>
5213498266Sopenharmony_ciGET ftp://%HOSTIP:%FTPPORT/%TESTNUMBER;type=A HTTP/1.1
5313498266Sopenharmony_ciHost: %HOSTIP:%FTPPORT
5413498266Sopenharmony_ciAccept: */*
5513498266Sopenharmony_ciProxy-Connection: Keep-Alive
5613498266Sopenharmony_ci
5713498266Sopenharmony_ci</protocol>
5813498266Sopenharmony_ci</verify>
5913498266Sopenharmony_ci</testcase>
60