Monday, April 21, 2014

#1 2005-10-13 04:14:24 pm

julifos
Administrator
From: MalasaƱa, Madrid
Registered: 2002-11-20
Posts: 2014

How can I fill and submit a form in a web browser?

The best approach is the command-line utility curl. Using this tool you can submit GET and POST data easilly.

Applescript:

--> submit POST data
set remoteApp to "http://www.server.com/app.cgi"
set URLEncodedVars to "var1=jumbo&var2=blank%20space"
do shell script "curl -d " & URLEncodedVars & space & remoteApp

--> submit GET data
do shell script "curl http://www.server.com/app.cgi?var1=a&var2=b"

You can also open the related web page in your favorite browser (your favorite browser is Safari, Internet Explorer or Omniweb) and use its built-in command to execute javascript code, which will fill and submit the form.

If you don't know how-to do it, just ask at our BBS!

Offline

 

Board footer

Powered by FluxBB

[ Generated in 0.029 seconds, 10 queries executed ]

RSS (new topics) RSS (active topics)