cfhttp GET request removes certain Headers?
Question:
Does a cfhttp request, using a GET method, remove Headers such as Content-Type?
And if so, is there a way around this?
Problem:
I'm making an external API call that requires certain information be passed within the Content-Type header ...
<cfhttpparam type="header" name="Content-Type" value="application/json">
vs.
<cfhttpparam type="header" name="Content-Type" value="application/xml">
to determine the type of information returned to me. JSON or XML.
When attempting to use the first param type, it returns an Error. However, when doing so with a POST method, it does not.
The second param type works no matter what type of method I use.
I'm using ColdFusion 11.
I would really prefer to be working with JSON, but if I can't get JSON data back when I'm not using POST, I'll have to resort to using XML, a far less appealing option.
