-uclient_http_set_write_len(struct uclient *cl, unsigned int len)
-{
- struct uclient_http *uh = container_of(cl, struct uclient_http, uc);
-
- if (uh->state >= HTTP_STATE_HEADERS_SENT)
- return -1;
-
- if (uh->req_type == REQ_GET || uh->req_type == REQ_HEAD) {
- fprintf(stderr, "Sending data is not supported for %s requests\n",
- request_types[uh->req_type]);
- return -1;
- }
-
- uh->send_len = len;
- return 0;
-}
-
-static int