or else we consiser this to be the body right away! */
if (2 == sscanf (p, " HTTP/1.%d %3d", &httpversion,
&httpcode)) {
+ data->progress.httpcode = httpcode;
+ data->progress.httpversion = httpversion;
+
/* 404 -> URL not found! */
if (
( ((data->bits.http_follow_location) &&
failf (data, "The requested file was not found");
return CURLE_HTTP_NOT_FOUND;
}
- data->progress.httpcode = httpcode;
- data->progress.httpversion = httpversion;
if(httpversion == 0)
/* Default action for HTTP/1.0 must be to close, unless