Opened 14 years ago

Closed 14 years ago

Last modified 13 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 by Gabriel Hurley, 14 years ago

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 by nickname123, 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 nickname123, 14 years ago

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 by Gabriel Hurley, 14 years ago

Thanks for checking. That's what I figured.

comment:5 by Jacob, 13 years ago

milestone: 1.3

Milestone 1.3 deleted

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