Dear Monks,
I am quite comfortable using CGI.pm for retrieval of data submitted from a form, but am not sure if I can use it for the following.
I have been asked to write a script that will be called via a webserver from an existing piece of software, passing parameters similar to some of these:
MyScript.pl?DELIVERMESSAGE MyScript.pl?MESSAGECOUNT&BRANCH=<branch> MyScript.pl?TOTALDATASIZE&BRANCH=<branch> MyScript.pl?GETMESSAGE&BRANCH=<branch>&TIMEOUT=10
So obviously when it is called I want to know if it is DELIVERMESSAGE or MESSAGECOUNT etc. and deal with it appropiately. Can I use CGI.pm to do this, or some other methodswould be more appropiate?
In addition, in the description of the desired behaviour, my manager has written "Get branch ID from HTTP header variable called “Comms-Branch”. " I am not quite sure what he means by "HTTP header variable", but as I am new in this position I don't want to appear foolish, and rather, impress. Any help greatly appreciated.

Regards,
Gerard

In reply to CGI Parameters by Gerard

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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, details, 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, summary, 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.