xref: /aosp_15_r20/external/curl/tests/data/test1145 (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker<testcase>
2*6236dae4SAndroid Build Coastguard Worker<info>
3*6236dae4SAndroid Build Coastguard Worker<keywords>
4*6236dae4SAndroid Build Coastguard WorkerFILE
5*6236dae4SAndroid Build Coastguard Worker</keywords>
6*6236dae4SAndroid Build Coastguard Worker</info>
7*6236dae4SAndroid Build Coastguard Worker
8*6236dae4SAndroid Build Coastguard Worker<reply>
9*6236dae4SAndroid Build Coastguard Worker</reply>
10*6236dae4SAndroid Build Coastguard Worker
11*6236dae4SAndroid Build Coastguard Worker# Client-side
12*6236dae4SAndroid Build Coastguard Worker<client>
13*6236dae4SAndroid Build Coastguard Worker<server>
14*6236dae4SAndroid Build Coastguard Workerfile
15*6236dae4SAndroid Build Coastguard Worker</server>
16*6236dae4SAndroid Build Coastguard Worker<name>
17*6236dae4SAndroid Build Coastguard Workerfile:// bad host
18*6236dae4SAndroid Build Coastguard Worker</name>
19*6236dae4SAndroid Build Coastguard Worker# This command should not succeed since we only accept
20*6236dae4SAndroid Build Coastguard Worker# file:/// file://localhost/ file://127.0.0.1/
21*6236dae4SAndroid Build Coastguard Worker# Pass %PWD instead of %FILE_PWD to trigger the expected
22*6236dae4SAndroid Build Coastguard Worker# error code with native Windows curl.
23*6236dae4SAndroid Build Coastguard Worker<command>
24*6236dae4SAndroid Build Coastguard Workerfile://bad-host%PWD/%LOGDIR/test%TESTNUMBER.txt
25*6236dae4SAndroid Build Coastguard Worker</command>
26*6236dae4SAndroid Build Coastguard Worker<file name="%LOGDIR/test%TESTNUMBER.txt">
27*6236dae4SAndroid Build Coastguard Workerfoo
28*6236dae4SAndroid Build Coastguard Worker   bar
29*6236dae4SAndroid Build Coastguard Workerbar
30*6236dae4SAndroid Build Coastguard Worker   foo
31*6236dae4SAndroid Build Coastguard Workermoo
32*6236dae4SAndroid Build Coastguard Worker</file>
33*6236dae4SAndroid Build Coastguard Worker</client>
34*6236dae4SAndroid Build Coastguard Worker
35*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot"
36*6236dae4SAndroid Build Coastguard Worker<verify>
37*6236dae4SAndroid Build Coastguard Worker# CURLE_URL_MALFORMAT is error code 3
38*6236dae4SAndroid Build Coastguard Worker<errorcode>
39*6236dae4SAndroid Build Coastguard Worker3
40*6236dae4SAndroid Build Coastguard Worker</errorcode>
41*6236dae4SAndroid Build Coastguard Worker</verify>
42*6236dae4SAndroid Build Coastguard Worker</testcase>
43