cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

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

From: SourceForge.net <noreply_at_sourceforge.net>
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:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=839806&group_id=976

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
something.

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:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=839806&group_id=976

-------------------------------------------------------
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! http://www.apachecon.com/
Received on 2003-11-11

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET