Lines Matching refs:contenttype

1747 static bool content_type_match(const char *contenttype,  in content_type_match()  argument
1750 if(contenttype && strncasecompare(contenttype, target, len)) in content_type_match()
1751 switch(contenttype[len]) { in content_type_match()
1765 const char *contenttype, in Curl_mime_prepare_headers() argument
1788 contenttype = customct; in Curl_mime_prepare_headers()
1791 if(!contenttype) { in Curl_mime_prepare_headers()
1794 contenttype = MULTIPART_CONTENTTYPE_DEFAULT; in Curl_mime_prepare_headers()
1797 contenttype = Curl_mime_contenttype(part->filename); in Curl_mime_prepare_headers()
1798 if(!contenttype) in Curl_mime_prepare_headers()
1799 contenttype = Curl_mime_contenttype(part->data); in Curl_mime_prepare_headers()
1800 if(!contenttype && part->filename) in Curl_mime_prepare_headers()
1801 contenttype = FILE_CONTENTTYPE_DEFAULT; in Curl_mime_prepare_headers()
1804 contenttype = Curl_mime_contenttype(part->filename); in Curl_mime_prepare_headers()
1814 else if(contenttype && !customct && in Curl_mime_prepare_headers()
1815 content_type_match(contenttype, STRCONST("text/plain"))) in Curl_mime_prepare_headers()
1817 contenttype = NULL; in Curl_mime_prepare_headers()
1823 (contenttype && !strncasecompare(contenttype, "multipart/", 10))) in Curl_mime_prepare_headers()
1860 if(contenttype) { in Curl_mime_prepare_headers()
1861 ret = add_content_type(&part->curlheaders, contenttype, boundary); in Curl_mime_prepare_headers()
1871 else if(contenttype && strategy == MIMESTRATEGY_MAIL && in Curl_mime_prepare_headers()
1892 if(content_type_match(contenttype, STRCONST("multipart/form-data"))) in Curl_mime_prepare_headers()