diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-03-01 21:56:23 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-03-01 21:56:23 +0000 |
commit | 4ff9f2b08e3fc000d78e790fe355f0ed527266dd (patch) | |
tree | 96e16222cfb7ad4fb5a86f2afd3fdcc4d663bc66 | |
parent | 04e714562cde950a6eb15a3ac2d31c078c8f6553 (diff) |
store the pretransfer time
store the http code
-rw-r--r-- | lib/download.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 */ |