# WSETCONTENTTYPE

Updated: 4/3/2020, 10:08:01 PM
Created: 4/3/2020, 10:08:01 PM
Last Updated By: Mike Street
Read Time: 1 minute(s)

Created At: 6/27/2017 7:58:14 PM
Updated At: 11/23/2017 8:28:00 AM
Original Doc: wsetcontenttype
Original ID: 261443
Internal: No

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.