# WSETCONTENTTYPE

Updated: 7/8/2020, 5:59:18 PM
Created: 7/8/2020, 5:59:18 PM
Last Updated By: Ryan Medina
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

Parameter Description
CONTENTTYPE Pass in what you want the content type to be. This will set the header Content-Type.

# Example

CALL WSETCONTENTTYPE("application/json")
1

# Notes

Click here to see a list of valid Content Types.