# WSETCONTENTTYPE

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 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 to see a list of valid Content Types

# Example

CALL WSETCONTENTTYPE("application/json")
1

Back to jAgent APIs