Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 968
Andree Avatar asked Feb 16 '26 07:02

Andree


1 Answers

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

like image 151
Cornel Creanga Avatar answered Feb 19 '26 12:02

Cornel Creanga



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!