set correct Content-Type header
always pass an ID parameter (default to 0), otherwise we violate the spec