Lines Matching refs:request

121 	errent_t errs[ESTACK_SIZE]; /* stack of errors on the last request */
445 * userid - ID to pass as part of http/https request
785 * http_head_request - Issue http HEAD request
805 * http_get_request - Issue http GET request without a range.
825 * http_get_range_request - Issue http GET request using a range.
889 * handle - Handle associated with the connection where the request
1085 * handle - Handle associated with the connection where the request
1506 * http_req - Issue http request (either HEAD or GET)
1531 char *request;
1547 /* Determine the name for the request type */
1577 * Size the request.
1595 if ((request = malloc(requestlen)) == NULL) {
1600 /* The request line */
1602 j = snprintf(request, requestlen,
1607 j = snprintf(request, requestlen, "%s %s HTTP/1.1\r\n",
1612 j += snprintf(&request[j], requestlen - j, "Host: %s:%d\r\n",
1615 j += snprintf(&request[j], requestlen - j,
1618 j += snprintf(&request[j], requestlen - j,
1635 if ((newreq = realloc(request, requestlen)) == NULL) {
1636 free(request);
1640 request = newreq;
1642 j += sprintf(&request[j], "Range: bytes=%lld-", curpos);
1644 j += sprintf(&request[j], "%lld", endpos);
1645 j += sprintf(&request[j], "\r\n");
1664 free(request);
1674 free(request);
1686 if ((newreq = realloc(request, requestlen)) == NULL) {
1689 free(request);
1693 request = newreq;
1695 j += snprintf(&request[j], requestlen - j,
1702 j += sprintf(&request[j], "\r\n");
1705 libbootlog(BOOTLOG_VERBOSE, "%s", request);
1707 /* send the HTTP request */
1708 retval = http_srv_send(c_id, request, j);
1710 free(request);
1712 /* Assume error in was set by send request. */
1970 * it returns, the connection is ready for a HEAD or GET request.
2076 * the request to connect to the target host. It reads the response
2078 * is ready for a HEAD or GET request.
2098 /* Now that we're connected, do the proxy request */