Contributed by Anonymous Monk on Apr 02, 2000 at 19:04 UTC
Q&A  > HTTP and FTP clients


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="" -->
I am not sure that usual
my $req = new HTTP::Request 'POST',' +.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!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • 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
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            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.