|
|
|
|
WebserviceReadMIMEType (Function) In french: WebserviceLitTypeMIME
Not available
Returns the MIME type of the request received when calling a REST web service.
SWITCH WebserviceReadMIMEType()
CASE "application/json"
...
CASE "application/xml"
...
OTHER CASE
WebserviceWriteHTTPCode(415, sError)
RETURN
END
Syntax
<MIME type> = WebserviceReadMIMEType()
<MIME type>: Character string MIME type received in the HTTP Content-Type header. Hundreds of types are defined in the MIME communication standard (available on the Internet). The most common values are:- "text/html": HTML page (*.htm, *.html)
- "text/plain": text file (*.txt)
- "application/pdf": PDF document (*.pdf)
- "image/gif": GIF image (*.gif)
- "image/jpeg": JPEG image (*.jpg, *.jpeg)
- "video/mpeg": MPEG video (*.mpg, *.mpeg)
- "application/unknown": displays a dialog box allowing the user to download the file.
- "application/msword": displays a Word file.
- "application/vnd.ms-excel": displays an Excel file.
Remarks This function is only available when calling a function that processes a REST web service request. In all other cases, the function returns an empty string.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|