@@ -21,7 +21,7 @@ static int wget(const char* url, const char* filepath, wget_progress_cb progress
21
21
req.url = url;
22
22
ret = cli.send (&req, &resp);
23
23
if (ret != 0 ) {
24
- fprintf (stderr, " request error: %d\n " , ret);
24
+ fprintf (stderr, " HEAD request error: %d\n " , ret);
25
25
return ret;
26
26
}
27
27
printd (" %s" , resp.Dump (true , false ).c_str ());
@@ -85,7 +85,7 @@ static int wget(const char* url, const char* filepath, wget_progress_cb progress
85
85
};
86
86
ret = cli.send (&req, &resp);
87
87
if (ret != 0 ) {
88
- fprintf (stderr, " request error: %d\n " , ret);
88
+ fprintf (stderr, " GET request error: %d\n " , ret);
89
89
goto error;
90
90
}
91
91
goto success;
@@ -99,7 +99,7 @@ static int wget(const char* url, const char* filepath, wget_progress_cb progress
99
99
printd (" %s" , req.Dump (true , false ).c_str ());
100
100
ret = cli.send (&req, &resp);
101
101
if (ret != 0 ) {
102
- fprintf (stderr, " request error: %d\n " , ret);
102
+ fprintf (stderr, " GET Range: bytes=%ld-%ld request error: %d\n " , from, to , ret);
103
103
goto error;
104
104
}
105
105
printd (" %s" , resp.Dump (true , false ).c_str ());
0 commit comments