• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

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

New Here ,
Sep 26, 2017 Sep 26, 2017

Copy link to clipboard

Copied

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

TOPICS
Development

Views

414

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Sep 27, 2017 Sep 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.

Votes

Translate

Translate
Advocate ,
Sep 27, 2017 Sep 27, 2017

Copy link to clipboard

Copied

Maybe using NativeProcess or .ane.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Sep 27, 2017 Sep 27, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 29, 2017 Sep 29, 2017

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Sep 29, 2017 Sep 29, 2017

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines