mirror of
https://github.com/curl/curl.git
synced 2026-08-26 01:33:33 +03:00
curl: return error if etag options are used with multiple URLs
And document it. Add tests 484 and 485 Fixes #15729 Reported-by: Tamir Duberstein Closes #15731
This commit is contained in:
parent
0439499170
commit
a300879b63
7 changed files with 113 additions and 6 deletions
44
tests/data/test485
Normal file
44
tests/data/test485
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<testcase>
|
||||
<info>
|
||||
<keywords>
|
||||
HTTP
|
||||
etags
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
</reply>
|
||||
|
||||
#
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
none
|
||||
</server>
|
||||
<name>
|
||||
Use --etag-compare and -save with more than one URL, URLs specified first
|
||||
</name>
|
||||
<command>
|
||||
http://example.com/%TESTNUMBER http://example.net/fooo --etag-save %LOGDIR/etag%TESTNUMBER
|
||||
</command>
|
||||
</client>
|
||||
|
||||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<errorcode>
|
||||
2
|
||||
</errorcode>
|
||||
<stderr mode="text">
|
||||
curl: The etag options only work on a single URL
|
||||
curl: option --etag-save: is badly used here
|
||||
%if manual
|
||||
curl: try 'curl --help' or 'curl --manual' for more information
|
||||
%else
|
||||
curl: try 'curl --help' for more information
|
||||
%endif
|
||||
</stderr>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue