Signed-off-by: Felix Fietkau <nbd@openwrt.org>
INSTALL(FILES uclient.h uclient-utils.h
DESTINATION include/libubox
)
INSTALL(FILES uclient.h uclient-utils.h
DESTINATION include/libubox
)
+INSTALL(TARGETS uclient uclient-fetch
+ RUNTIME DESTINATION bin
- struct blob_attr *cur;
- int rem;
-
if (retries < 10 && uclient_http_redirect(cl)) {
if (!quiet)
fprintf(stderr, "Redirected to %s on %s\n", cl->url->location, cl->url->host);
if (retries < 10 && uclient_http_redirect(cl)) {
if (!quiet)
fprintf(stderr, "Redirected to %s on %s\n", cl->url->location, cl->url->host);
- if (!quiet) {
- fprintf(stderr, "Headers (%d): \n", cl->status_code);
- blobmsg_for_each_attr(cur, cl->meta, rem) {
- fprintf(stderr, "%s=%s\n", blobmsg_name(cur), (char *) blobmsg_data(cur));
- }
- }
-
switch (cl->status_code) {
case 204:
case 200:
switch (cl->status_code) {
case 204:
case 200: