Skip to content

Commit

Permalink
Add print for #571
Browse files Browse the repository at this point in the history
  • Loading branch information
ithewei committed Jul 9, 2024
1 parent d73732e commit 5b5aefb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/wget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static int wget(const char* url, const char* filepath, wget_progress_cb progress
req.url = url;
ret = cli.send(&req, &resp);
if (ret != 0) {
fprintf(stderr, "request error: %d\n", ret);
fprintf(stderr, "HEAD request error: %d\n", ret);
return ret;
}
printd("%s", resp.Dump(true, false).c_str());
Expand Down Expand Up @@ -85,7 +85,7 @@ static int wget(const char* url, const char* filepath, wget_progress_cb progress
};
ret = cli.send(&req, &resp);
if (ret != 0) {
fprintf(stderr, "request error: %d\n", ret);
fprintf(stderr, "GET request error: %d\n", ret);
goto error;
}
goto success;
Expand All @@ -99,7 +99,7 @@ static int wget(const char* url, const char* filepath, wget_progress_cb progress
printd("%s", req.Dump(true, false).c_str());
ret = cli.send(&req, &resp);
if (ret != 0) {
fprintf(stderr, "request error: %d\n", ret);
fprintf(stderr, "GET Range: bytes=%ld-%ld request error: %d\n", from, to, ret);
goto error;
}
printd("%s", resp.Dump(true, false).c_str());
Expand Down

0 comments on commit 5b5aefb

Please sign in to comment.