Mechanize question

From: Charlie (cji_work_at_yahoo.com)
Date: 11/09/04

  • Next message: Sisyphus: "Re: Local install of modules - no root; no telnet"
    Date: 8 Nov 2004 21:57:48 -0800
    
    

    Hi All,
    I am using the WWW::Mechanize Package to access some web page
    automatically. And I hava a question that I am not sure how to solve.

    Here is part of my script which is very simple and works for lots web
    pages.
    "
    use strict;
    use warnings;
    use WWW::Mechanize;

    $mech = WWW::Mechanize->new();
    $mech->form(1);
    ...
    $mech->submit();

    ",
    but not for the html file as follows, as there is a "</form>" missing.
    "
    <html>
    <head>
            <title>...</title>
    </head>
    <body>
         <form name="form" ...method="post">
           <table cellspacing=4 cellpadding=3 border=0>
           ...
           </table>
    </body>
    </html>
    "
    On the other hand, that kind of html file is very popular and
    accetable for most browsers now.

    So my question is is there a way to work around.

    CJ


  • Next message: Sisyphus: "Re: Local install of modules - no root; no telnet"

    Relevant Pages

    • Request for public review: Debian bookmarks
      ... as I'm currently preparing the next upload of the package "bookmarks" which ... You can find the masterfile here: ... And the automatically generated html file: ...
      (Debian-User)
    • Calling Help File from Executable Project Type using Powerplant
      ... simple .html file) from PPC Mac OS X Project Type is Executable. ... list file as follow and put help file folder under application package. ...
      (comp.sys.mac.oop.powerplant)
    • Calling Help file from a Executable project type
      ... simple .html file) from PPC Mac OS X Project Type is Executable. ... as follow and put help file folder under application package. ...
      (comp.sys.mac.oop.powerplant)
    • Re: JAR-ing a package?
      ... The package should have been made like this: ... > When I try to run the .html file I get: ... > How should I make the .jar file and where should I put it relative to the ...
      (comp.lang.java.programmer)
    • Re: OT - Netscape 7.2 question
      ... choosing between browsers and likes this idea.... ... Save Page saves it as an HTML file in a directory on the HD, along with a bunch of other separate files. ... For example, I have one page "SAVED"ed that contains one html file and 43 other various jpg, gif, css, and other files. ... I've tried those other methods, because I like FF as a browser, but the methods it allows me for saving pages are complicated, unwieldly, and less than desirable compared to 7.2's Send Page. ...
      (rec.outdoors.rv-travel)