Lines Matching refs:hdbuf
1402 char *hdbuf = (char *)mem; in http_request() local
1427 if(hdbuf[i] == '\n' && hdbuf[i - 1] == '\r') { in http_request()
1447 line_end = memchr(hdbuf, '\r', len); in http_request()
1454 end = memchr(hdbuf, ' ', line_end - hdbuf); in http_request()
1455 if(!end || end == hdbuf) in http_request()
1459 nva[0].value = (unsigned char *)hdbuf; in http_request()
1460 nva[0].valuelen = (size_t)(end - hdbuf); in http_request()
1463 hdbuf = end + 1; in http_request()
1467 for(i = (size_t)(line_end - hdbuf); i; --i) { in http_request()
1468 if(hdbuf[i - 1] == ' ') { in http_request()
1469 end = &hdbuf[i - 1]; in http_request()
1473 if(!end || end == hdbuf) in http_request()
1477 nva[1].value = (unsigned char *)hdbuf; in http_request()
1478 nva[1].valuelen = (size_t)(end - hdbuf); in http_request()
1496 hdbuf = line_end + 2; in http_request()
1500 line_end = memchr(hdbuf, '\r', len - (hdbuf - (char *)mem)); in http_request()
1501 if(!line_end || (line_end == hdbuf)) in http_request()
1505 if(*hdbuf == ' ' || *hdbuf == '\t') in http_request()
1508 for(end = hdbuf; end < line_end && *end != ':'; ++end) in http_request()
1510 if(end == hdbuf || end == line_end) in http_request()
1512 hlen = end - hdbuf; in http_request()
1514 if(hlen == 4 && strncasecompare("host", hdbuf, 4)) { in http_request()
1520 nva[i].namelen = (size_t)(end - hdbuf); in http_request()
1522 Curl_strntolower((char *)hdbuf, hdbuf, nva[i].namelen); in http_request()
1523 nva[i].name = (unsigned char *)hdbuf; in http_request()
1526 hdbuf = end + 1; in http_request()
1527 while(*hdbuf == ' ' || *hdbuf == '\t') in http_request()
1528 ++hdbuf; in http_request()
1532 switch(inspect_header((const char *)nva[i].name, nva[i].namelen, hdbuf, in http_request()
1533 end - hdbuf)) { in http_request()
1543 nva[i].value = (unsigned char *)hdbuf; in http_request()
1544 nva[i].value_len = (size_t)(end - hdbuf); in http_request()
1547 nva[i].value = (unsigned char *)hdbuf; in http_request()
1548 nva[i].valuelen = (size_t)(end - hdbuf); in http_request()