tags:

views:

52

answers:

2

Some sites have forms which are Flash.

How can I programmatically, fill out these forms ?

Is the only solution sending POST via cURL by first monitoring the http headers being sent ?

A: 

I imagine there are ways you could automate a series of commands like typing in a field, hitting tab, typing, tabbing etc., but to achieve the end result of submitting the information to the server it probably would be faster and easier to just submit the HTTP POST using a tool like cURL.

Christopher
A: 

That would only work if the form you're filling out is sending back the results with a POST. There's many different ways for Flash/Flex forms to pass back the data, using http, web services, rpc or even sockets.

Ideally, you need to decompile the swf (which can be done automaticaly), and within the decompiled source you will be able to see the forms and automatically fill them.

To do so, you will need:

  1. SWF Decompiler - To actually decompile from flash 'bytecode' to the source of the movie
  2. SWF Parser - To parse the source and find forms to fill out

You may want to check something on google, or there: http://freemovie.sourceforge.net

Hope it helps!

Kel
Google uses an official, headless (no GUI) Flash Player version that was developed by Adobe. It works using a special API with commands such as (imaginary names) getAllTextFields(), getAllButtons(), clickButtonAt(idx); This way, it can simulate a user recursively traversing all links within the Flash app. Hence comparing it to a decompiler is less true than comparing it to an actual human user.
richardolsson