|Mac & Win
Sets maximum allowed request size.
|The reference number of the web hook.
|The allowed maximum value.
Can be 0 for no limit.
Returns OK or error.
DescriptionSets maximum allowed request size.
This allows you to disconnect sockets, which send too much data.
By default there is no limit, so people can send requests with giga byte big payload.
Depending on your use can it may be worth to limit request size to a reasonable value.
For example if you receive notifications from your phone system, you may set the maximum size to 10000 bytes and a timeout of 60 seconds for WebHook.SetTimeOut function. That is probably 10 times more than needed, but may avoid some malicious user from sending a ton of useless traffic.
The check is performed after we check HTTP requests, so if a request comes quickly, it may skip the limit check. If you test this on localhost, you need to e.g. use --limit-rate with curl command line tool to slow down your request. This is not an issue over a regular network with latency.
- Top 10 from the MBS Plugin in 2022
- New in MBS FileMaker Plugin 12.1
- MBS FileMaker Plugin, version 12.1pr4
This function checks for a license.
Created 20th February 2022, last changed 20th February 2022