curl-curl/tests/data/test378
Viktor Szakats d29f14b9cf
tests: replace significant invisible spaces with macros
To make them explicit, visible, avoid being accidentally trimmed.
Also prevents Git warnings, e.g. on `git am`.

Also:
- runtests: add support for `%spc%` and `%tab%` macros.
- test59: delete non-significant line-ending space.
- spacecheck.pl: drop line-ending whitespace exception for tests.

Closes #19300
2025-10-31 17:15:33 +01:00

37 lines
530 B
Plaintext

<testcase>
<info>
<keywords>
HTTP PUT
HTTP POST
</keywords>
</info>
#
# Server-side
<reply>
</reply>
#
# Client-side
<client>
<name>
Reject using -T and -d at once
</name>
<command>
-T %LOGDIR/%TESTNUMBER -d input http://never-accessed
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<errorcode>
2
</errorcode>
<stderr mode="text">
Warning: You can only select one HTTP request method! You asked for both PUT%spc%
Warning: (-T, --upload-file) and POST (-d, --data).
</stderr>
</verify>
</testcase>