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