Posted by Scott Bryce on 05/28/07 13:48
gordon.is.a.moron@gmail.com wrote:
> Thanks everyone. The links will come in handy. I should explain, I
> want my software to fill in a form on a page which is not under my
> control.
You will have no choice but to write a script. It may run on a web
server or locally.
> So running a server side script is not an option.
It may be your only option.
> I was looking more towards interpreting the page somehow and then
> filling in the fields.
Perl has tools that will do that. I imagine PHP does as well.
You can look here, but you would need to know Perl to make use of it.
http://search.cpan.org/~petdance/WWW-Mechanize-1.24/lib/WWW/Mechanize.pm
> One worry though is the log in aspect, I suspect it will log me out
> all the time unless I handle cookies etc.
www::mechanize can handle cookies.
> And then there's the javascript...
If the page you are trying to interpret requires Javascript, you may not
be able to do what you want to do.
[Back to original message]
|