+static void request_done(struct uclient *cl)
+{
+ if (n_urls) {
+ uclient_set_url(cl, *urls, auth_str);
+ n_urls--;
+ error_ret = init_request(cl);
+ if (error_ret == 0)
+ return;
+ }
+
+ if (output_fd >= 0 && !output_file) {
+ close(output_fd);
+ output_fd = -1;
+ }
+ uclient_disconnect(cl);
+ uloop_end();
+}
+
+