0 Replies Latest reply on Nov 14, 2010 7:46 PM by dougmcleod

    HTMLLoader Incorrectly Sets Referer in Header

    dougmcleod

      I'm having problems loading a webpage using HTMLLoader. Everything except for an embedded Flash movie load correctly. The problem seems to be Air setting the HTTP Request Header Referer to "app:/HTMLLoaderTest.swf" when it should be using the domain name "http://somesite.com/page.htm" like it does for all the other requests.

       

      I tried manually setting the Referer in the URLRequest but that only seems to alter the initial request to the server. Is there anyway to fix this?

       

      Code I was using:

      urlRequest.requestHeaders.push(new URLRequestHeader("Referer", "http://somesite.com/page.htm"));