1 Reply Latest reply on Aug 1, 2009 7:16 AM by _Natasha_

    setting header in actionscript

    rockstar888

      Hi, can anyone help me on this.

       

      I'm trying to set the connection/keep-alive headers but everytime I run the application in the flash player, I always have this error:

           ArgumentError: Error #2096: The HTTP request header cannot be set via ActionScript.

       

      Does this mean that setting these headers is not supported for applications for the flash player? Or am I doing something wrong. What I only need is to set the keep-alive and connection headers.

       

      Any help would be greatly appreciated!

        • 1. Re: setting header in actionscript
          _Natasha_ Level 4

          Hi,

           

          it's impossible to set this header.

          Description for this error:

          You are adding a disallowed HTTP header to an HTTP request. The following headers are disallowed:

          • NULL header string
          • Accept-Charset
          • Accept-Encoding
          • Accept-Ranges
          • Age
          • Allow
          • Allowed
          • Connection
          • Content-Length
          • Content-Location
          • Content-Range
          • Date
          • ETag
          • Expect
          • Host
          • Keep-Alive
          • Last-Modified
          • Location
          • Max-Forwards
          • Proxy-Authenticate
          • Proxy-Authorization
          • Public
          • Range
          • Referer
          • Retry-After
          • Server
          • TE
          • Trailer
          • Transfer-Encoding
          • Upgrade
          • URI
          • User-Agent
          • Vary
          • Via
          • Warning
          • WWW-Authenticate
          • x-flash-version