Friday, March 26, 2010

setting header in actionscript

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!

setting header in actionscript

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

No comments:

Post a Comment