Lines Matching defs:requestlen
1535 int requestlen;
1586 requestlen = strlen(reqtypename) + 8 + strlen(CONN_HOSTNAME) + 1 +
1594 requestlen += 6 + strlen(CONN_HOSTNAME) + 1 +
1596 if ((request = malloc(requestlen)) == NULL) {
1603 j = snprintf(request, requestlen,
1608 j = snprintf(request, requestlen, "%s %s HTTP/1.1\r\n",
1613 j += snprintf(&request[j], requestlen - j, "Host: %s:%d\r\n",
1616 j += snprintf(&request[j], requestlen - j,
1619 j += snprintf(&request[j], requestlen - j,
1630 requestlen += 13 + count_digits(curpos) + 1 + 2;
1633 requestlen += count_digits(endpos);
1636 if ((newreq = realloc(request, requestlen)) == NULL) {
1686 requestlen += 21 + strlen(authencstr) + 2;
1687 if ((newreq = realloc(request, requestlen)) == NULL) {
1696 j += snprintf(&request[j], requestlen - j,