Detect if an HTTP request is being executed from an asynchronous browser request / Flex?

When a Flex application creates an asynchronus HTTP request, does it add a special header for the request, like some kind of JavaScript environment does? Something that indicates whether this request is an AJAX / not call.

I just want my server-side code to return a different response format, depending on whether the request is made from the / flex browser.

Regards, Andrew.

+3
source share
1 answer

No, but you can add your own headers . Perhaps the best solution is to configure the request (adding a parameter to distinguish between requests).

+2
source

Source: https://habr.com/ru/post/1747950/


All Articles