Check whether variable is set
Set Content-Type in request