Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
CURL.GetContentType
Get the content-type of the downloaded object.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 2.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "CURL.GetContentType"; curl ) More
Parameters
Parameter | Description | Example |
---|---|---|
curl | The CURL session handle. | $curl |
Result
Returns the requested value or nothing on error.
Description
Get the content-type of the downloaded object.This is the value read from the Content-Type: field. If you get an empty string, it means that the server didn't send a valid Content-Type header or that the protocol used doesn't support this.
See also
Example Databases
This function checks for a license.
Created 18th August 2014, last changed 18th August 2014