Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
WebRequest.GetBody
Queries body for HTTP request.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WebHook | 11.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "WebRequest.GetBody"; 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
Queries body for HTTP request.Examples
Query body:
Set Field [ WebHook::Body ; MBS("WebRequest.GetBody"; $WebRequest; "UTF-8") ]
See also
- WebRequest.GetBodyAsContainer
- WebRequest.GetBodySize
- WebRequest.GetHost
- WebRequest.GetMode
- WebRequest.GetSize
- WebRequest.GetSSL
- WebRequest.GetState
- WebRequest.GetTag
- WebRequest.GetURL
- WebRequest.SetTag
Release notes
- Version 12.1
- Added WebRequest.GetBodySize and WebRequest.GetSize functions.
Example Databases
- WebHook/Trigger script with Webhook/WebHook Listener
- WebHook/WebHook Chat/WebHook Chat
- WebHook/WebHook
Blog Entries
This function checks for a license.
Created 17th October 2021, last changed 9th November 2021
WebPolicyDelegate.RemoveMimeType - WebRequest.GetBodyAsContainer