curl/tests/data/test3203
Colin Leroy-Mira bfe54b0e88
file: add support for getting basic directory listings
Not supported on Windows (yet)

Closes #13137
2024-04-11 12:37:12 +02:00

42 lines
590 B
Plaintext

<testcase>
<info>
<keywords>
HTTP
HTTP GET
FILE
</keywords>
</info>
#
# Client-side
<client>
<server>
file
</server>
<name>
GET a directory using file://
</name>
<!-- doesn't work on win32, see #6379 -->
<features>
!win32
</features>
<command option="no-include">
file://localhost%FILE_PWD/%LOGDIR/test%TESTNUMBER.dir/
</command>
<file name="%LOGDIR/test%TESTNUMBER.dir/dir-listing-test.txt">
Contents of file are irrelevant
</file>
</client>
#
# Verify data after the test has been "shot"
<verify>
<errorcode>
0
</errorcode>
<stdout>
dir-listing-test.txt
</stdout>
</verify>
</testcase>