Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#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 Changed 12 years ago by Gabriel Hurley

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?

comment:2 Changed 12 years ago by nickname123

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 Changed 12 years ago by nickname123

Resolution: invalid
Status: newclosed

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.

comment:4 Changed 12 years ago by Gabriel Hurley

Thanks for checking. That's what I figured.

comment:5 Changed 11 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

Note: See TracTickets for help on using tickets.
Back to Top