Fortinet white logo
Fortinet white logo

Script Reference Guide

HTTP DATA commands

HTTP DATA commands

If the HTTP data exceeds the 1.25M buffer size limit, FortiADC will only collect up to the 1.25M limit of data and forward the excess data directly.

  • HTTP:collect() — Collects body data from the HTTP request or response. You may specify a specific amount using the length argument.

  • HTTP:payload(size) — Returns the size of the buffered content. The returned value is an integer.

  • HTTP:payload(content) — Returns the buffered content in a string.

  • HTTP:payload(set) — Inserts the specified data at the specified location.

  • HTTP:payload(find) — Searches for a particular string or a regular expression on the buffered data.

  • HTTP:payload(remove) — Removes a particular string or a regular expression from the buffered data.

  • HTTP:payload(replace) — Replaces a particular string or regular expression with a new string.

HTTP DATA commands

HTTP DATA commands

If the HTTP data exceeds the 1.25M buffer size limit, FortiADC will only collect up to the 1.25M limit of data and forward the excess data directly.

  • HTTP:collect() — Collects body data from the HTTP request or response. You may specify a specific amount using the length argument.

  • HTTP:payload(size) — Returns the size of the buffered content. The returned value is an integer.

  • HTTP:payload(content) — Returns the buffered content in a string.

  • HTTP:payload(set) — Inserts the specified data at the specified location.

  • HTTP:payload(find) — Searches for a particular string or a regular expression on the buffered data.

  • HTTP:payload(remove) — Removes a particular string or a regular expression from the buffered data.

  • HTTP:payload(replace) — Replaces a particular string or regular expression with a new string.