开发者

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

开发者 https://www.devze.com 2023-01-02 08:01 出处:网络
When Flex application make an asynchronus HTTP request, does it add a sp开发者_C百科ecial header to the request, like some JavaScript framework does? Something that indicates whether this request is a

When Flex application make an asynchronus HTTP request, does it add a sp开发者_C百科ecial 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消