cURL / Mailing Lists / curl-users / Single Mail


[ curl-Bugs-839806 ] Guessed Content-Type invalid

From: <>
Date: Tue, 11 Nov 2003 00:56:51 -0800

Bugs item #839806, was opened at 2003-11-11 00:56
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Category: libcurl
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: Guessed Content-Type invalid

Initial Comment:
libcurl has an internal list for content-types which it
uses unless specified otherwise. This is in
ContentTypeForFilename() in lib/formdata.c.

.html becomes text/plain which is wrong

The list is limited to gifs and jpegs and default is
text/plain, which imo should be binary/octet-stream or

I would suggest adding a few more extensins (postscript
for instance), or use the systems mime-type database
(/etc/mime.type) if possible


You can respond by visiting:

This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more!
Received on 2003-11-11