Andree
Andree

Reputation: 3103

Detect if HTTP request is from browser / Flex asynchronous request?

When Flex application make an asynchronus HTTP request, does it add a special header to the request, like some JavaScript framework does? Something that indicates whether this request is an AJAX call/not.

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

Regards, Andree.

Upvotes: 3

Views: 413

Answers (1)

Cornel Creanga
Cornel Creanga

Reputation: 5308

No, but you can add your own headers. Maybe a better solution is to customize the request (add a parameter to distinguish between requests).

Upvotes: 2

Related Questions