Skip to main content
Participant
Sep 26, 2017 10:15 PM UTC
Answered

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

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

This topic is closed to new replies. Start a new post to keep the conversation going.
zwetan_ukCorrect answer
Inspiring
Sep 27, 2017 3:03 PM UTC

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

4 replies

Participant
Sep 29, 2017 5:47 PM UTC

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

Translate
Inspiring
Sep 29, 2017 6:22 PM UTC

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

Translate
zwetan_ukCorrect answer
Inspiring
Sep 27, 2017 3:03 PM UTC

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

Translate
Inspiring
Sep 27, 2017 12:21 PM UTC

Maybe using NativeProcess or .ane.

Translate