Re: Getting WWW::Mechanize to submit a form



Mumia W. wrote:
On 09/16/2007 09:35 AM, Amer Neely wrote:
Mumia W. wrote:
[...]

perl Makefile.PL PREFIX=/path/to/modules INSTALLSITELIB=/path/to/modules INSTALLDIRS=site

Ah, thank you for that. I was already using PREFIX, but was unaware of this one.


You're welcome. For more information read the docs for ExtUtils::MakeMaker:

Start->Run->"perldoc ExtUtils::MakeMaker"

The ActiveState help menus might also have them.


Yep, was just going through them.

[...]
Maybe the HTML has javascript to initialize some parts of the form, and the server rejects any forms that have not been so initialized.


The form I am trying to populate is made from an .aspx file, so I don't really know what they are doing at their end. I'll suggest a different approach to them. Thanks for responding.


Aspx programs produce HTML (AFAIK), so naturally you would take a look at the HTML before attempting to write a Perl script to interact with its forms.

I have the form name and field names etc. but for some reason the 'other side' is saying nothing is getting posted to it. I'm very confident that my script works - I've tested it myself filling in a plain HTML form, which gets posted to my script, which then uses Mechanize to populate a remote form successfully. So I'm not clear what is different about this scenario. I've sent them a plain HTML form to host so I can point to that. My thinking is that since their form points back to itself for execution, this may affect things. Mechanize comes back with no errors though, which is the confusing part.

--
Amer Neely
w: www.webmechanic.softouch.on.ca/
Perl | MySQL programming for all data entry forms.
"Others make web sites. We make web sites work!"
.



Relevant Pages

  • 2005-10-23 [de.comp.lang.perl.cgi] FAQ
    ... Programmiersprache Perl in CGI-Scripten. ... Wo gibt es Dokumentation über Perl und CGI? ... Hilfe zum Programm perldoc kann man mit 'perldoc perldoc' ... Mein Script läuft nicht bei meinem Provider. ...
    (de.comp.lang.perl.cgi)
  • 2005-10-23 [de.comp.lang.perl.cgi] FAQ
    ... Programmiersprache Perl in CGI-Scripten. ... Wo gibt es Dokumentation über Perl und CGI? ... Hilfe zum Programm perldoc kann man mit 'perldoc perldoc' ... Mein Script läuft nicht bei meinem Provider. ...
    (de.comp.lang.perl.cgi)
  • 2005-10-23 [de.comp.lang.perl.cgi] FAQ
    ... Programmiersprache Perl in CGI-Scripten. ... Wo gibt es Dokumentation über Perl und CGI? ... Hilfe zum Programm perldoc kann man mit 'perldoc perldoc' ... Mein Script läuft nicht bei meinem Provider. ...
    (de.comp.lang.perl.cgi)
  • 2005-10-23 [de.comp.lang.perl.cgi] FAQ
    ... Programmiersprache Perl in CGI-Scripten. ... Wo gibt es Dokumentation über Perl und CGI? ... Hilfe zum Programm perldoc kann man mit 'perldoc perldoc' ... Mein Script läuft nicht bei meinem Provider. ...
    (de.comp.lang.perl.cgi)
  • 2005-11-20 [de.comp.lang.perl.cgi] FAQ
    ... Programmiersprache Perl in CGI-Scripten. ... Wo gibt es Dokumentation über Perl und CGI? ... Hilfe zum Programm perldoc kann man mit 'perldoc perldoc' ... Mein Script läuft nicht bei meinem Provider. ...
    (de.comp.lang.perl.cgi)