}
/* check for Content-Length: header lines to get size */
if (strnequal("Content-Length", p, 14) &&
- sscanf (p+14, ": %ld", &contentlength))
+ sscanf (p+14, ": %ld", &contentlength)) {
conn->size = contentlength;
+ Curl_pgrsSetDownloadSize(data, contentlength);
+ }
else if (strnequal("Connection: close", p,
strlen("Connection: close"))) {
/*
return CURLE_OK;
}
-typedef int (*func_T)(void);
-
CURLcode curl_transfer(CURL *curl)
{
CURLcode res;