• Home
  • Raw
  • Download

Lines Matching refs:hdbuf

604   char *hdbuf = (char *)mem;  in http_request()  local
618 if(hdbuf[i] == '\n' && hdbuf[i - 1] == '\r') { in http_request()
638 line_end = memchr(hdbuf, '\r', len); in http_request()
645 end = memchr(hdbuf, ' ', line_end - hdbuf); in http_request()
646 if(!end || end == hdbuf) in http_request()
650 nva[0].value = (unsigned char *)hdbuf; in http_request()
651 nva[0].value_len = (size_t)(end - hdbuf); in http_request()
653 hdbuf = end + 1; in http_request()
657 for(i = (size_t)(line_end - hdbuf); i; --i) { in http_request()
658 if(hdbuf[i - 1] == ' ') { in http_request()
659 end = &hdbuf[i - 1]; in http_request()
663 if(!end || end == hdbuf) in http_request()
667 nva[1].value = (unsigned char *)hdbuf; in http_request()
668 nva[1].value_len = (size_t)(end - hdbuf); in http_request()
684 hdbuf = line_end + 2; in http_request()
688 line_end = memchr(hdbuf, '\r', len - (hdbuf - (char *)mem)); in http_request()
689 if(!line_end || (line_end == hdbuf)) in http_request()
693 if(*hdbuf == ' ' || *hdbuf == '\t') in http_request()
696 for(end = hdbuf; end < line_end && *end != ':'; ++end) in http_request()
698 if(end == hdbuf || end == line_end) in http_request()
700 hlen = end - hdbuf; in http_request()
702 if(hlen == 4 && strncasecompare("host", hdbuf, 4)) { in http_request()
708 nva[i].name_len = (size_t)(end - hdbuf); in http_request()
710 Curl_strntolower((char *)hdbuf, hdbuf, nva[i].name_len); in http_request()
711 nva[i].name = (unsigned char *)hdbuf; in http_request()
713 hdbuf = end + 1; in http_request()
714 while(*hdbuf == ' ' || *hdbuf == '\t') in http_request()
715 ++hdbuf; in http_request()
719 switch(inspect_header((const char *)nva[i].name, nva[i].namelen, hdbuf, in http_request()
720 end - hdbuf)) { in http_request()
730 nva[i].value = (unsigned char *)hdbuf; in http_request()
731 nva[i].value_len = (size_t)(end - hdbuf); in http_request()
734 nva[i].value = (unsigned char *)hdbuf; in http_request()
735 nva[i].value_len = (size_t)(end - hdbuf); in http_request()