# WSETCONTENTTYPE

Updated: 9/28/2020, 10:32:47 PM
Created: 9/28/2020, 10:32:47 PM
Last Updated By: Peter Schellenbach
Read Time: 1 minute(s)

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

# WSETCONTENTTYPE 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.

# WSETCONTENTTYPE Example

CALL WSETCONTENTTYPE("application/json")
1

# WSETCONTENTTYPE Notes

Click here to see a list of valid Content Types.