Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, by using post method ,i cant see what are the values passed in url, How to see what are the values passed in url ,is there a way other than GET to achieve this, i heard there is a way by using scripts. How to create scripts to submit data on web pages in URL . I would like to use some more scripts instead of submiting the data through POST and GET methods in forms. anybody have idea on this? Thanks in Advance...
  • Comment on How to submitting data on webpage using script?

Replies are listed 'Best First'.
Re: How to submitting data on webpage using script?
by Corion (Patriarch) on May 30, 2012 at 12:55 UTC

    Most likely the Mechanize family of modules will be what you want, if you want to simulate a browser. To use them, you will need to know about HTML and HTTP and how they interact. I cannot help you with that.

Re: How to submitting data on webpage using script?
by ww (Archbishop) on May 30, 2012 at 11:47 UTC
    What have you tried?
    Where have you searched?
      I need submit the data on webpage. the webpage is on another server,i cannot edit the webpage.. so do u have any idea for this?.. Thanks in Advance..
Re: How to submitting data on webpage using script?
by Anonymous Monk on May 30, 2012 at 23:12 UTC

    Hi,

    I do this for POSTs

    xmlVal = "Whatever=value"; xmlHttp.open("POST", 'my_prog.pl', true); xmlHttp.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded"); xmlHttp.send(xmlVal);

    This allows the POST headers to be read.

    J.C.

Re: How to submitting data on webpage using script?
by zeni (Beadle) on May 30, 2012 at 12:13 UTC

    Have you tried using 'Request' ? Which script do you need exactly? javascript?

    Life is a box of chocolates.. Perhaps you get to eat very few best ones!!