Lines Matching defs:line

900  * status line.  Allocate and return response information via the 'resp'
908 * about the status line, the code in the status line and the number of
925 char line[MAXHOSTNAMELEN];
943 * check the response status line, expecting
946 i = getaline(c_id, line, sizeof (line), B_FALSE);
967 libbootlog(BOOTLOG_VERBOSE, "http_process_headers: %s", line);
969 ptr = line;
1017 * See if there is a 'content-type: multipart/mixed' line in the
1098 * a boundary line as the next non-empty line. It then reads header lines
1119 char line[MAXHOSTNAMELEN];
1149 /* Look for the boundary line. */
1151 while ((i = getaline(c_id, line, sizeof (line), B_TRUE)) == 0 &&
1167 "http_process_part_headers: %s", line);
1169 /* Look for boundary line - '--<boundary text> */
1170 if (line[0] != '-' || line[1] != '-' ||
1171 strncmp(&line[2], c_id->boundary, c_id->boundary_len) != 0) {
1172 /* No boundary line.... */
1178 if (strcmp(&line[c_id->boundary_len + 2], "--") == 0) {
1203 * http_get_response_header - Get a line from the response header
1209 * whichline - Which line of the header to return. This must be between
1214 * ptr - Points to a copy of the header line.
1240 * http_get_header_value - Get the value of a header line.
1601 /* The request line */
2015 * readline - Get a line from the socket. Discard the end-of-line
2023 * buf - Buffer for the line
2027 * 0 - Success. 'buf' contains the line.
2082 * (the status line and any headers). When it returns, the connection
2156 /* Look for the blank line that signals end of proxy header */
2269 * lines until it gets a empty line indicating end of headers.
2282 * Read the lines. If the current line begins with a space or tab, it is
2283 * a continuation. Take the new line and append it to the end of the
2284 * previous line rather than making an entry for another line in
2293 char line[MAXHOSTNAMELEN];
2300 /* process headers, stop when we get to an empty line */
2303 while ((n = getaline(c_id, line, sizeof (line), bread)) > 0) {
2307 "read_headerlines: %s", line);
2309 * See if this is a continuation line (first col is a
2312 if (line[0] != ' ' && line[0] != ' ') {
2323 c_id->resphdr[cur] = strdup(line);
2329 ptr = line;
2408 * get_chunk_header - Get a chunk header line
2420 char line[MAXHOSTNAMELEN];
2435 ok = ((i = getaline(c_id, line, sizeof (line), B_FALSE)) == 0);
2439 i = getaline(c_id, line, sizeof (line), B_FALSE);
2450 libbootlog(BOOTLOG_VERBOSE, "get_chunk_header: <%s>", line);
2454 * The first (and probably only) field in the line is the hex
2457 ptr = line;
2625 * NOTE: the line will not end with a NULL if all 'len' bytes
2630 * line - Where to store the data.
2631 * len - Maximum number of bytes in the line.
2647 getaline(http_conn_t *c_id, char *line, int len, boolean_t bread)
2699 line[i] = '\0';
2704 line[i++] = c_id->inbuf.buf[c_id->inbuf.i++];
2714 * line - Where to store the data.
2734 getbytes(http_conn_t *c_id, char *line, int len)
2762 (void) memcpy(line, &c_id->inbuf.buf[c_id->inbuf.i],
2766 nbytes = http_srv_recv(c_id, line, cnt);
2776 line += nbytes;