mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:03:37 +03:00
store the pretransfer time
store the http code
This commit is contained in:
parent
04e714562c
commit
4ff9f2b08e
1 changed files with 3 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue