Monday, June 26, 2017

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

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.


--> submit POST data
set remoteApp to ""
set URLEncodedVars to "var1=jumbo&var2=blank%20space"
do shell script "curl -d " & URLEncodedVars & space & remoteApp

--> submit GET data
do shell script "curl"

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!



Board footer

Powered by FluxBB

[ Generated in 0.034 seconds, 10 queries executed ]

RSS (new topics) RSS (active topics)