ContentSniffer.sniff

Sniffs @buffer to determine its Content-Type. The result may also be influenced by the Content-Type declared in @msg's response headers.

class ContentSniffer
string
sniff
(,,
out HashTable params
)

Parameters

msg Message

the message to sniff

buffer Buffer

a buffer containing the start of @msg's response body

params HashTable

return location for Content-Type parameters (eg, "charset"), or %NULL

Return Value

Type: string

the sniffed Content-Type of @buffer; this will never be %NULL, but may be "application/octet-stream".

Meta

Since

2.28