Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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

by Anonymous Monk
on Apr 02, 2000 at 19:04 UTC ( #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


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.
  • Log In?

    What's my password?
    Create A New User
    [erix]: well, I hope you're right
    [Your Mother]: Bill Clinton assaulted and raped repeatedly. Even when it was hinted and finally all but proved, no one cared because his sexism, and racism, and killing was decorous.
    [Your Mother]: I think Trump might be better specifically because no one respects him so he won't get his way the way the others did.
    [Your Mother]: (I certainly did not vote for him and have been an outspoken critic of his for three decades, by the by.)
    [erix]: I'd like Russia threatened a bit more, flattered a bit less
    [Your Mother]: The last two regimes killed a million, displaced 10 million, torture prisons, and ruined countries… somehow it's magically bad _now_.
    [erix]: what/who are the last two regimes?
    [Your Mother]: Bush/Obama. 15 straight years of warfare, torture, etc, etc.
    [Your Mother]: All caused by the political fallout of Carter/Reagan when the Afghan chickens came home to roost on 9/11.
    [Your Mother]: US foreign policy is toxic and like a broken record.

    How do I use this? | Other CB clients
    Other Users?
    Others making s'mores by the fire in the courtyard of the Monastery: (6)
    As of 2017-01-20 01:05 GMT
    Find Nodes?
      Voting Booth?
      Do you watch meteor showers?

      Results (173 votes). Check out past polls.