X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhttp.c;h=0ffbd66c8f8ac2ccf0641f908a16e2ddf4e5352b;hp=52ed83653c55b84d0b50c38570c955e31784c863;hb=282798f52e2cde76eaeb1384d6fcbdc624c79611;hpb=bb3f805b86413e3eac33db12b251d67a841b3199 diff --git a/src/http.c b/src/http.c index 52ed8365..0ffbd66c 100644 --- a/src/http.c +++ b/src/http.c @@ -1890,8 +1890,11 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy, statcode = resp_status (resp, &message); if (statcode < 0) { - logprintf (LOG_NOTQUIET, _("Invalid server response.\n")); - CLOSE_INVALIDATE (sock); + char *tms = datetime_str (time (NULL)); + logprintf (LOG_VERBOSE, "%d\n", statcode); + logprintf (LOG_NOTQUIET, _("%s ERROR %d: %s.\n"), tms, statcode, + quotearg_style (escape_quoting_style, + _("Malformed status line"))); xfree (head); return HERR; } @@ -1985,7 +1988,11 @@ gethttp (struct url *u, struct http_stat *hs, int *dt, struct url *proxy, statcode = resp_status (resp, &message); if (statcode < 0) { - logprintf (LOG_NOTQUIET, _("Invalid server response.\n")); + char *tms = datetime_str (time (NULL)); + logprintf (LOG_VERBOSE, "%d\n", statcode); + logprintf (LOG_NOTQUIET, _("%s ERROR %d: %s.\n"), tms, statcode, + quotearg_style (escape_quoting_style, + _("Malformed status line"))); CLOSE_INVALIDATE (sock); request_free (req); return HERR;