mirror of
https://github.com/curl/curl.git
synced 2024-12-27 06:59:43 +08:00
e7a021e135
This will allow it be set dynamically. Ref: #10818
40 lines
553 B
Plaintext
40 lines
553 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP PUT
|
|
HTTP POST
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
none
|
|
</server>
|
|
<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
|
|
Warning: (-T, --upload-file) and POST (-d, --data).
|
|
</stderr>
|
|
</verify>
|
|
</testcase>
|