开发者

Determine MIME Content Type

开发者 https://www.devze.com 2023-03-27 12:31 出处:网络
I\'m using C++ with a packet sniffer in Windows.How do I get the Content Type of a MIME file that is about to be downloaded. I am new to this, so please don\'t delete my question. That will not help m

I'm using C++ with a packet sniffer in Windows. How do I get the Content Type of a MIME file that is about to be downloaded. I am new to this, so please don't delete my question. That will not help me to figure this out. Ive been googling all day, and as far as I can see MIME content type is what I 开发者_Go百科need but how and where do I access this file?


The MIME type is sent as the Content-Type HTTP header field. e.g. Content-Type: image/jpeg. Note that HTTP headers are sent as plain text ahead of the actual content (payload). They're not a separate file, as such.

0

精彩评论

暂无评论...
验证码 换一张
取 消