Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.3   11.4   11.5   12.0   12.1   12.2   12.3   12.4   12.5   13.0    Statistic    FMM    Blog  

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 } )   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

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

Example Databases

Created 17th October 2021, last changed 9th November 2021


WebRequest.GetMode - WebRequest.GetRemoteIP

Feedback: Report problem or ask question.


Start Chat