2022-04-17 17:18:16 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP PUT
|
|
|
|
HTTP POST
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
none
|
|
|
|
</server>
|
2023-10-04 17:35:54 +08:00
|
|
|
<name>
|
2022-04-17 17:18:16 +08:00
|
|
|
Reject using -T and -d at once
|
2023-10-04 17:35:54 +08:00
|
|
|
</name>
|
|
|
|
<command>
|
2023-03-29 09:20:54 +08:00
|
|
|
-T %LOGDIR/%TESTNUMBER -d input http://never-accessed
|
2022-04-17 17:18:16 +08:00
|
|
|
</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
|
|
|
|
Warning: (-T, --upload-file) and POST (-d, --data).
|
|
|
|
</stderr>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|