From: Daniel Stenberg Date: Wed, 1 Mar 2000 21:56:23 +0000 (+0000) Subject: store the pretransfer time X-Git-Tag: curl-6_5~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ff9f2b08e3fc000d78e790fe355f0ed527266dd;p=curl store the pretransfer time store the http code --- 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 */