1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

store the pretransfer time

store the http code
This commit is contained in:
Daniel Stenberg 2000-03-01 21:56:23 +00:00
parent 04e714562c
commit 4ff9f2b08e

View File

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