Lines Matching refs:send_buf

114 static int httpclient_get_info(httpclient_t *client, char *send_buf, int *send_idx, char *buf, size…  in httpclient_get_info()  argument
131 memcpy(send_buf + idx, buf, cp_len) ; in httpclient_get_info()
140 ret = http_tcp_send_wrapper(client, send_buf, HTTPCLIENT_SEND_BUF_SIZE) ; in httpclient_get_info()
166 static int httpclient_send_auth(httpclient_t *client, char *send_buf, int *send_idx) in httpclient_send_auth() argument
171 httpclient_get_info(client, send_buf, send_idx, "Authorization: Basic ", 0) ; in httpclient_send_auth()
179 httpclient_get_info(client, send_buf, send_idx, b_auth, 0) ; in httpclient_send_auth()
194 char *send_buf = NULL; in httpclient_send_header() local
217 send_buf = (char *) malloc(send_buf_size); in httpclient_send_header()
218 if (!send_buf) { in httpclient_send_header()
223 memset(send_buf, 0, send_buf_size); in httpclient_send_header()
245 ret = httpclient_get_info(client, send_buf, &len, buf, strlen(buf)); in httpclient_send_header()
254 httpclient_send_auth(client, send_buf, &len) ; /* send out Basic Auth header */ in httpclient_send_header()
259 httpclient_get_info(client, send_buf, &len, (char *)client->header, strlen(client->header)); in httpclient_send_header()
267 httpclient_get_info(client, send_buf, &len, buf, strlen(buf)); in httpclient_send_header()
272 httpclient_get_info(client, send_buf, &len, buf, strlen(buf)); in httpclient_send_header()
276 httpclient_get_info(client, send_buf, &len, buf, strlen(buf)); in httpclient_send_header()
281 httpclient_get_info(client, send_buf, &len, buf, strlen(buf)); in httpclient_send_header()
284 httpclient_get_info(client, send_buf, &len, buf, strlen(buf)); in httpclient_send_header()
288 httpclient_get_info(client, send_buf, &len, buf, strlen(buf)); in httpclient_send_header()
295 httpclient_get_info(client, send_buf, &len, "\r\n", 0); in httpclient_send_header()
297 http_debug("Trying to write %d bytes http header:%s", len, send_buf); in httpclient_send_header()
301 if (http_ssl_send_wrapper(client, send_buf, len) != len) { in httpclient_send_header()
312 ret = http_tcp_send_wrapper(client, send_buf, len); in httpclient_send_header()
338 if (send_buf) { in httpclient_send_header()
339 free(send_buf); in httpclient_send_header()
340 send_buf = NULL; in httpclient_send_header()