# WGETBODY

Updated: 9/28/2020, 10:32:47 PM
Created: 9/28/2020, 10:32:47 PM
Last Updated By: Peter Schellenbach
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