Referer header not being sent when requesting XML

  • It seems that krpano is not sending the referer header when getting the xml from the server.

    Doing a quick googling, it seems that "you can send headers using addRequestHeader() when using loadVars or loadXML." It seems to me (not being a flash developer at all), that by default flash is not sending headers when getting external urls.

    Is this correct? Is krpano not sending headers when requesting the xml? Can it be forced to do so somehow? Is there somthing I am missing?

    Thanks for the help.

  • Hi,

    right, the Flashplayer doesn't send the referer header,
    it and also not possible to add one, see here:
    http://help.adobe.com/en_US/AS3LCR/F…uestHeader.html

    a quote from there:

    Quote

    In Flash Player and in Adobe AIR content outside of the application security sandbox, the following request headers cannot be used, and the restricted terms are not case-sensitive (for example, Get, get, and GET are all not allowed). Also, hyphenated terms apply if an underscore character is used (for example, both Content-Length and Content_Length are not allowed):
    Accept-Charset, Accept-Encoding, Accept-Ranges, Age, Allow, Allowed, Authorization, Charge-To, Connect, Connection, Content-Length, Content-Location, Content-Range, Cookie, Date, Delete, ETag, Expect, Get, Head, Host, Keep-Alive, Last-Modified, Location, Max-Forwards, Options, Origin, Post, Proxy-Authenticate, Proxy-Authorization, Proxy-Connection, Public, Put, Range, Referer, Request-Range, Retry-After, Server, TE, Trace, Trailer, Transfer-Encoding, Upgrade, URI, User-Agent, Vary, Via, Warning, WWW-Authenticate, x-flash-version.


    best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!