Home | History | Annotate | Download | only in lib

Lines Matching defs:ContentType

82             char *contenttype,
99 post->contenttype = contenttype;
138 char *contenttype,
146 if(contenttype)
147 form_info->contenttype = contenttype;
171 * Returns some valid contenttype for filename.
177 const char *contenttype = NULL;
183 struct ContentType {
187 static const struct ContentType ctts[]={
198 contenttype = prevtype;
200 contenttype = HTTPPOST_CONTENTTYPE_DEFAULT;
208 contenttype = ctts[i].type;
214 /* we have a contenttype by now */
215 return contenttype;
244 * storing a filename (CONTENTTYPE is optional!):
507 const char *contenttype =
509 if(current_form->contenttype) {
511 if(contenttype) {
512 char *type = strdup(contenttype);
535 if(contenttype) {
536 current_form->contenttype = strdup(contenttype);
537 if(!current_form->contenttype)
598 Curl_safefree(ptr->contenttype);
635 !form->contenttype) {
639 /* our contenttype is missing */
640 form->contenttype = strdup(ContentTypeForFilename(f, prevtype));
641 if(!form->contenttype) {
682 form->contenttype, form->flags,
693 if(form->contenttype)
694 prevtype = form->contenttype;
712 Curl_safefree(ptr->contenttype);
1031 free(form->contenttype); /* free the content type */
1280 if(file->contenttype) {
1284 file->contenttype);