Lines Matching refs:hdr
337 static char *match_header(struct curl_slist *hdr, const char *lbl, size_t len) in match_header() argument
341 if(strncasecompare(hdr->data, lbl, len) && hdr->data[len] == ':') in match_header()
342 for(value = hdr->data + len + 1; *value == ' '; value++) in match_header()
349 const char *hdr, size_t len) in search_header() argument
354 value = match_header(hdrlist, hdr, len); in search_header()
926 struct curl_slist *hdr = (struct curl_slist *) part->state.ptr; in readback_part() local
935 if(!hdr) { in readback_part()
939 if(match_header(hdr, "Content-Type", 12)) { in readback_part()
940 mimesetstate(&part->state, MIMESTATE_USERHEADERS, hdr->next); in readback_part()
945 if(!hdr) in readback_part()
949 hdr->data, strlen(hdr->data), STRCONST("\r\n")); in readback_part()
951 mimesetstate(&part->state, part->state.state, hdr->next); in readback_part()
1681 struct curl_slist *hdr = NULL; in Curl_mime_add_header() local
1690 hdr = Curl_slist_append_nodup(*slp, s); in Curl_mime_add_header()
1691 if(hdr) in Curl_mime_add_header()
1692 *slp = hdr; in Curl_mime_add_header()
1697 return hdr ? CURLE_OK : CURLE_OUT_OF_MEMORY; in Curl_mime_add_header()