Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

WebRequest.GetRawData

Get raw data of full request.

Component Version macOS Windows Linux Server iOS SDK
WebHook 11.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "WebRequest.GetRawData"; WebRequest { ; Encoding; ClearBuffer } )   More

Parameters

Parameter Description Example Flags
WebRequest The reference number of the web request. $WebRequest
Encoding The text encoding for result.
Default is UTF-8.
Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the FAQ.
"UTF8" Optional
ClearBuffer Available in MBS FileMaker Plugin 14.4 or newer.
Whether to clear buffer after reading it.
Pass 1 to clear or 0 to not clear. Default is 0.
0 Optional

Result

Returns text or error.

Description

Get raw data of full request.

Examples

Query raw data as UTF-8 and fix line endings:

Set Field [ WebHook::RawData ; MBS( "Text.ReplaceNewline"; MBS("WebRequest.GetRawData"; $WebRequest; "UTF-8"); 1) ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 17th October 2021, last changed 3th August 2024


WebRequest.GetMode - WebRequest.GetRemoteIP