how to programmatically fill out flash forms?

故事扮演 提交于 2020-01-03 03:57:09

问题


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 ?


回答1:


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!




回答2:


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.



来源:https://stackoverflow.com/questions/1967721/how-to-programmatically-fill-out-flash-forms

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!