# WSETCONTENTTYPE

Updated: 1/18/2022, 5:31:44 PM
Created: 1/18/2022, 5:31:44 PM
Last Updated By: dependabot[bot]
Read Time: 1 minute(s)

The WSETCONTENTTYPE subroutine sets the Content-Type header.  This is a alternative to using WSETHEADER subroutine.

# Command Syntax

CALL WSETCONTENTTYPE(CONTENTTYPE)
1

# Syntax Elements

The WSETCONTENTTYPE subroutine expects a string parameter argument. This will set the response header Content-Type. No validation is performed for content types.

Click here (opens new window) to see a list of valid Content Types

# Example

CALL WSETCONTENTTYPE("application/json")
1

Back to jAgent APIs