Skip to main content
Inspiring
August 29, 2013
Question

URLRequest GET with requestHeaders

  • August 29, 2013
  • 1 reply
  • 630 views

Is there a way to make a GET URLRequest with custom requestHeaders in AIR? In the Flash Player this is not allowed, per the documentation:

Due to browser limitations, custom HTTP request headers are only supported for POST requests, not for GET requests.

However, AIR is not the browser, so it shouldn;t be subject to these limitations, but it seems to still strip out all my requestHeaders when using the GET method, while they work fine with POST. Is there a way to make it work?

Thanks!

- Aaron

This topic has been closed for replies.

1 reply

Inspiring
August 29, 2013

I must have missed something before, it looks like GET requestHeaders are working just fine in AIR 3.7!

-Aaron

Inspiring
September 1, 2013

Thanks for the info. That is interesting because I've been using a workaround for  quite a while. It would be reassuring if that's something that is no longer an  issue and I don't need a hack.