Is there a way with PERL to set the checkboxes?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • grbCPPUsr
    New Member
    • Mar 2007
    • 4

    Is there a way with PERL to set the checkboxes?

    How can I set the check boxes ON using perl script? I've a process which provides HTTP port for monitoring and update functions. Also, it has check boxes which when set enables extra logging. I cannot change the original executable and so, wish to set the check boxes using the perl script. Can someone please help me on this?
    Many thanks for all the help.
  • miller
    Recognized Expert Top Contributor
    • Oct 2006
    • 1086

    #2
    Hi Grb,

    What you are asking is extremely vague.

    You've given us no real understanding of what these checkboxes that are talking about are on. Are they on a webpage? Are they in an application? Are you wanting to automate the posting of a form? How is perl related this this problem that you're having at all?

    Clarify what you're talking about, and maybe someone will be able to help you out.

    - Miller

    Comment

    • grbCPPUsr
      New Member
      • Mar 2007
      • 4

      #3
      Sorry for confusion.
      This is a webpage, an interface for monitoring & updating the memory cache of a process.
      This webpage has a FORM in which it provides multiple check boxes to enable the tracing feature of this application.
      I would like to automate enabling of these check boxes.
      I related this to perl because, currently there is script as below, used to do similar actions on this web page. So, I thouht I might be able to achieve same results using perl script.

      Code:
      use LWP::UserAgent;
      use URI::URL;
      use HTTP::Request;
      
      $url = new URI::URL('http://hkmeruat2.csfb.co.jp:21011/?oas=meth%2Finvoke&ns=%2Fself%2FCE%2FPX%2FCACHE%2FUNSUB&owlUserCredential=&Symbol=BHP.AX&Type=RIC');
      
      $req = new HTTP::Request(GET, $url);
      $ua = new LWP::UserAgent;
      $resp = $ua->request($req);
      if ($resp->is_success) {
      	my $HtmlContent = $resp->content;
      	print STDOUT $HtmlContent;
      } else {
      	print STDOUT "Error occured";
      }
      If I'm allowed to attach a JPG file which shows this web page, I may be able to explain my quesion more.

      Sorry if I missed something.
      Last edited by miller; Mar 26 '07, 04:52 PM. Reason: Code Tag and ReFormatting

      Comment

      • KevinADC
        Recognized Expert Specialist
        • Jan 2007
        • 4092

        #4
        look into WWW::Mechanize

        Comment

        Working...