# WGETBODY

Updated: 10/14/2021, 2:20:00 PM
Created: 10/14/2021, 2:20:00 PM
Last Updated By: mikes
Read Time: 1 minute(s)

The WGETBODY gets the raw body sent in the web request.  Only certain content types pass the raw body.  See the config file to determine which ones.

# WGETBODY Syntax

CALL WGETBODY(BODY)
1

# Syntax Elements

Parameter Description
BODY Returned body

The WGETBODY subroutine only returns a string.  That string is the raw body.

# WGETBODY Example

CALL WGETBODY(BODY)
* NOW PARSE BODY JSON INTO A OBJECT
CALL WOBJ(BODYOBJ,"FROMSTRING","",BODY,"",RERR)
1
2
3