FlashDevelop receives XML, Flash Pro receives JSON
<p>I'm getting a data feed from a client's supplier. <br>
Documention says that I can get the feed both in XML and in JSON, but that the default is XML. To get JSON I have to set a header <strong>Accept:application/json</strong> and remove <strong>Accept:application/xml</strong> header.<br>
I have not set nor removed any headers in my code. <br>
I'm using a normal URLLoader to load the feed.</p>

<p>When I navigate to the feed url in a browser, I get <strong>XML</strong>.<br>
When I run my code in FlashDevelop, I get <strong>XML</strong>.<br>
When I run the exact same code in Flash Pro, I get <strong>JSON</strong>.</p>

<p>Does anyone have any idea what is causing this in Flash Pro? Any hidden setting that can be changed?<br>
URLRequest.method has no impact. Debug mode or not has no impact.<br>
I'm stomped.</p>

<p>---------code I tried------------  </p>

<pre><code>var header:URLRequestHeader = new URLRequestHeader("Accept", "application/xml");
var headers:Array = [];
headers.push(header);
urlReq.requestHeaders = headers;
urlReq.method = URLRequestMethod.POST;
</code></pre>

<p>--------- full load code -----------</p>

<pre><code>_urlLoader.addEventListener(Event.COMPLETE, validateFeedLoaded);
_urlLoader.addEventListener(IOErrorEvent.IO_ERROR, handleFeedIOerror);
_urlLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, handleFeedSecError);
var urlReq:URLRequest = new URLRequest(_feedUrl);
urlReq.requestHeaders = [new URLRequestHeader("Accept", "application/json")];
_urlLoader.load(urlReq);
</code></pre>