1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -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_READ 1
#define KEEP_WRITE 2 #define KEEP_WRITE 2
pgrsTime(data, TIMER_PRETRANSFER);
if (!getheader) { if (!getheader) {
header = FALSE; header = FALSE;
if(size > 0) if(size > 0)
@ -341,6 +343,7 @@ Transfer (struct UrlData *data,
failf (data, "The requested file was not found"); failf (data, "The requested file was not found");
return URG_HTTP_NOT_FOUND; return URG_HTTP_NOT_FOUND;
} }
data->progress.httpcode = code;
} }
else { else {
header = FALSE; /* this is not a header line */ header = FALSE; /* this is not a header line */