# WGETHEADER

Updated: 2/24/2021, 3:51:59 PM
Created: 2/24/2021, 3:51:59 PM
Last Updated By: Daniel Klein
Read Time: 1 minute(s)

The WGETHEADER subroutine allows you to retrieve sent headers.

# Command Syntax

CALL WGETHEADER(HEADERVALUE,HEADERNAME)
1

# Syntax Elements

The WGETHEADER subroutine expects HEADERNAME to be sent and will return HEADERVALUE if found.

# Example

CALL WGETHEADER(REQESTMETHOD,"REQUEST_METHOD")
1

# Notes

The headers sent from the connector are determined by the connector config file.  This is to protect from Header Injection attacks. If you need additional headers, refer to your connector config file and add the header.

You can also get a list of supplied headers by calling WGETOPTIONS with a parameter of 34.

Back to jAgent APIs