• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripting a web-form, is it possible?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Setting up proxy hosts
  • Next by Date: Spring-loaded folder and folder action script
  • Previous by thread: Scripting a web-form, is it possible?
  • Next by thread: Setting up proxy hosts
  • Index(es):
    • Date
    • Thread