http: print reason phrase from HTTP status line on error

Bug: https://bugzilla.redhat.com/676596
This commit is contained in:
Kamil Dudka 2012-07-20 13:33:58 +02:00
parent 487406c3c0
commit d317ca50ae
3 changed files with 43 additions and 3 deletions

View file

@ -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>