#14605 closed (invalid)
method similar to HttpRequest.is_ajax() to detect flash
Reported by: | nickname123 | Owned by: | nobody |
---|---|---|---|
Component: | HTTP handling | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
It would be beneficial to have an easy method to detect when http requests come from flash player on sites that make use of flash for the same reasons is_ajax is useful for communicating with javascript.
This could be used to send responses encoded in the binary AMF protocol when dealing with the flash player and sent as json or xml to other clients.
Change History (5)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
I will double check over the headers that flash sends and reply back. I am pretty sure that the built in flash HTTP client uses an identifiable user agent.
comment:3 by , 14 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Going to mark this as invalid. When I went back and looked at how I detected flash it turned out that I set custom headers. I just forgot about it.
Forgive my ignorance (I'm not a flash developer), but is_ajax works because the major javascript libraries that support AJAX have standardized on adding the
X-Requested-With: XMLHttpRequest
header to AJAX requests... does Flash add something similar in a consistent manner?