Lines Matching defs:contenttype
81 char *contenttype,
98 post->contenttype = contenttype;
137 char *contenttype,
145 if(contenttype)
146 form_info->contenttype = contenttype;
170 * Returns some valid contenttype for filename.
176 const char *contenttype = NULL;
182 struct ContentType {
186 static const struct ContentType ctts[]={
197 contenttype = prevtype;
199 contenttype = HTTPPOST_CONTENTTYPE_DEFAULT;
207 contenttype = ctts[i].type;
213 /* we have a contenttype by now */
214 return contenttype;
243 * storing a filename (CONTENTTYPE is optional!):
506 const char *contenttype =
508 if(current_form->contenttype) {
510 if(contenttype) {
511 char *type = strdup(contenttype);
534 if(contenttype) {
535 current_form->contenttype = strdup(contenttype);
536 if(!current_form->contenttype)
597 Curl_safefree(ptr->contenttype);
634 !form->contenttype) {
638 /* our contenttype is missing */
639 form->contenttype = strdup(ContentTypeForFilename(f, prevtype));
640 if(!form->contenttype) {
681 form->contenttype, form->flags,
692 if(form->contenttype)
693 prevtype = form->contenttype;
711 Curl_safefree(ptr->contenttype);
1014 free(form->contenttype); /* free the content type */
1263 if(file->contenttype) {
1267 file->contenttype);