From 4ff9f2b08e3fc000d78e790fe355f0ed527266dd Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 1 Mar 2000 21:56:23 +0000 Subject: store the pretransfer time store the http code --- lib/download.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/download.c b/lib/download.c index d9fe30c40..d8c56b185 100644 --- a/lib/download.c +++ b/lib/download.c @@ -143,6 +143,8 @@ Transfer (struct UrlData *data, #define KEEP_READ 1 #define KEEP_WRITE 2 + pgrsTime(data, TIMER_PRETRANSFER); + if (!getheader) { header = FALSE; if(size > 0) @@ -341,6 +343,7 @@ Transfer (struct UrlData *data, failf (data, "The requested file was not found"); return URG_HTTP_NOT_FOUND; } + data->progress.httpcode = code; } else { header = FALSE; /* this is not a header line */ -- cgit v1.2.3