remote submit... is it possible?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mauro

    remote submit... is it possible?

    Hi,
    I'm trying to remote-control a site over which I have little control
    (it is a php app I installed on MY site, but I would like to leave it
    alone as much as possible).
    This app presents a series of forms to do various things.
    I can pre-fill the forms just manipulating the URL (*veeeery* long
    URLs, but it works).

    The problem:
    I still have to manually hit the [submit] button.
    Is there a way to force it programmaticall y?

    The form is a <form enctype="multip art/form-data" action="http://
    192.168.0.222/index.php?do=ne wtask&amp;proje ct=2" method="post">
    and the button is a stupid <button accesskey="s" type="submit">A dd
    this task</button>

    Can someone help me, please?
    TiA
    Mauro
  • Scott Bryce

    #2
    Re: remote submit... is it possible?

    Mauro wrote:
    I'm trying to remote-control a site over which I have little control
    Perl, and I am sure other languages as well, has the capability to
    submit information to a form on a web page that you do not have visible
    in a browser.

    Comment

    • Mauro

      #3
      Re: remote submit... is it possible?

      On 8 Apr, 16:14, Scott Bryce <sbr...@scottbr yce.comwrote:
      Mauro wrote:
      I'm trying to remote-control a site over which I have little control
      >
      Perl, and I am sure other languages as well, has the capability to
      submit information to a form on a web page that you do not have visible
      in a browser.
      Thanks,
      that's exactly what I need.
      Do You have specific pointers?
      I would hate to browse hundreds of packages on CPAN only to discover I
      chose the wrong one.

      TiA
      Mauro

      Comment

      • Sherman Pendley

        #4
        Re: remote submit... is it possible?

        Mauro <ZioByte@gmail. comwrites:
        On 8 Apr, 16:14, Scott Bryce <sbr...@scottbr yce.comwrote:
        >Mauro wrote:
        I'm trying to remote-control a site over which I have little control
        >>
        >Perl, and I am sure other languages as well, has the capability to
        >submit information to a form on a web page that you do not have visible
        >in a browser.
        >
        Thanks,
        that's exactly what I need.
        Do You have specific pointers?
        I would hate to browse hundreds of packages on CPAN only to discover I
        chose the wrong one.
        LWP is the low-level mechanism for web client programming, and supports
        a variety of protocols.

        WWW::Mechanize uses LWP, and adds higher-level capabilities like parsing
        and submitting forms, maintaining a cookie jar for multi-page "session
        cookies", and more.

        One hurdle to using these tools is that they're *not* JavaScript-aware.
        If you want to "drive" a site that relies on JS, you'll have to examine it
        to see what effect (if any) the JS has on the submitted data, then duplicate
        that effect in your Perl code.

        sherm--

        --
        My blog: http://shermspace.blogspot.com
        Cocoa programming in Perl: http://camelbones.sourceforge.net

        Comment

        Working...