Re: Scripting a web-form, is it possible?
Re: Scripting a web-form, is it possible?
- Subject: Re: Scripting a web-form, is it possible?
- From: JJ <email@hidden>
- Date: Mon, 02 Sep 2002 18:43:43 +0200
>
Hi,
>
>
i need to make account for a whole lotta users (700+) on a server. The
>
server is configured via a browser-interface. I'd like to make a script
>
than can automate things for me, making an account by typing a login
>
(for instance "1234"), a password (for instance "qdJHG68") and choosing
>
an item from a drop-down menu.
>
The logins and passwords should be extracted from a text-file.
>
>
Any help or pointers are very welcome, as i'm faily new to scripting
>
(and really need to impress the boss :-))
>
>
Regards,
>
Steen Villumsen
Hi, Steen.
You can script a web form using IE, but if you want pass variables to a
cgi-php... remote app, you can do it through "URL Access Scripting", which
is more reliable and quick.
You only need guess the name of the variables (the name of the form's fields
you're sending), then build a URL, such as:
set app_url to "
http://remoteserver.com/remoteapp.cgi"
set new_user to "username=1234&password=qdJHG68&dropdownmenu=this_option"
And call it from URL Access Scripting...
tell app "URL Access Scripting"
download app_url to (choose file name) replacing yes form data new_user
end tell
Most of php-cgi-asp-... apps accept this method... Hope this helps!
JJ
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.