# WSETCONTENTTYPE

Updated: 1/19/2021, 8:38:14 PM
Created: 1/19/2021, 8:38:14 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.

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