Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Can I use Perl to send POST data to forms that use MS FrontPage webbots?

( #6678=categorized question: print w/ replies, xml ) Need Help??
Contributed by Anonymous Monk on Apr 02, 2000 at 19:04 UTC
Q&A  > HTTP and FTP clients


Description:

Hi monks! I'd like to post data to some form created using MS FrontPage. This form has a webbot section like this:
<form method="POST" action="../_vti_bin/shtml.exe/info/index.htm"> <!--webbot bot="SaveResults" startspan s-email-format="TEXT/PRE" b-email-label-fields="TRUE" ..... s-email-address="some@host.com" -->
I am not sure that usual
my $req = new HTTP::Request 'POST','http://www.host.com/_vti_bin/shtml +.exe/info/index.htm
shall pass all the data to such a form. Thanks.

Answer: Can I use Perl to send POST data to forms that use MS FrontPage webbots?
contributed by chromatic

I don't see any reason why it wouldn't. The difference in this case is that there is code embedded in the web page. If the server is set up correctly, when it goes to serve the POST request, it will load the web page and (presumably) parse the code embedded within. The webbot will have access to the POSTed data and should be able to process it.

The stuff on the client side should look the same -- it's just different on the server side.

With that in mind, what happens when you try it?

Answer: Can I use Perl to send POST data to forms that use MS FrontPage webbots?
contributed by QandAEditors

The code you show for the page is the source code of the page, before it is being parsed by the FrontPage extensions in the server.

The code that is then actually sent out to the browser will look more like a normal form, i.e. the

s-email-format="TEXT/PRE" b-email-label-fields="TRUE"

and such is converted into HTML form elements.

What you need to do is to select "Preview in Browser" in FrontPage and then "View source" in the browser to see how the form has been rendered by the FP extensions. There you'll find what parameter names and values you'll you need to emulate with your perl script. In order for "Preview in Browser" to work correctly with bots, it must go through a web server installed with frontpage extensions. In some setups it just reads the page from disk...

Please (register and) log in if you wish to add an answer



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others musing on the Monastery: (7)
    As of 2014-11-28 07:07 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      My preferred Perl binaries come from:














      Results (193 votes), past polls