mirror of
https://github.com/curl/curl.git
synced 2026-08-25 15:03:32 +03:00
http: print reason phrase from HTTP status line on error
Bug: https://bugzilla.redhat.com/676596
This commit is contained in:
parent
487406c3c0
commit
d317ca50ae
3 changed files with 43 additions and 3 deletions
|
|
@ -24,7 +24,7 @@ http
|
|||
HTTP GET fail silently on HTTP error return
|
||||
</name>
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/24 --fail
|
||||
http://%HOSTIP:%HTTPPORT/24 --fail --silent --show-error
|
||||
</command>
|
||||
</client>
|
||||
|
||||
|
|
@ -43,5 +43,8 @@ Accept: */*
|
|||
<errorcode>
|
||||
22
|
||||
</errorcode>
|
||||
<file2 name="log/stderr24">
|
||||
curl: (22) The requested URL returned error: 404 BAD BOY
|
||||
</file2>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue