Code

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#14605 closed (invalid)

method similar to HttpRequest.is_ajax() to detect flash

Reported by: nickname123 Owned by: nobody
Component: HTTP handling Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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.

Attachments (0)

Change History (5)

comment:1 Changed 3 years ago by gabrielhurley

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

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

  • Resolution set to invalid
  • Status changed from new to 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.

comment:4 Changed 3 years ago by gabrielhurley

Thanks for checking. That's what I figured.

comment:5 Changed 3 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.