Skip to main content
Participant
September 26, 2017
Answered

Is there a way to read HTTP Request + Response headers from an AIR Desktop application?

  • September 26, 2017
  • 3 replies
  • 549 views

I need to create a network monitor, similar to Chrome Developer Tools, since Adobe AIR doesn't seem to provide that.

This topic has been closed for replies.
Correct answer zwetan_uk

You can implement your own HTTP parser combined with flash.net.Socket
and you will then be able to read the headers too.

3 replies

Participant
September 29, 2017

Using the HTTPStatus event in URLLoader u can get the status code, redirect and all headers, no ?

Inspiring
September 29, 2017

yes you'll get response headers there
BUT

the main problem is controlling your own request headers
associated with HTTP methods

Following what the doc says you are mainly stuck with GET and POST
and/or request headers have limitations

imho it is a bigger headache to reuse those API for advanced stuff like a network monitor,
at least by implementing your own HTTP parsing with Sockets
you control everything and you get a better expected behaviour

zwetan_ukCorrect answer
Inspiring
September 27, 2017

You can implement your own HTTP parser combined with flash.net.Socket
and you will then be able to read the headers too.

Inspiring
September 27, 2017

Maybe using NativeProcess or .ane.