cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Archives

How to identify the file type

From: Bong Coronel <nikkeivon_at_gmail.com>
Date: Thu, 18 Aug 2011 16:40:49 +0800

Hello,

I have a problem with identifying the type of the file being fetched using
libcurl. Basically I would like to identify if a file is an image file or a
pdf file. I don't think the content-type will be able to give me this
information.
Would anyone of you advice me how to do this in curl?

Thanks,
Bng

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-08-18

These mail archives are generated by hypermail.

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

File upload with ASP.NET