This url: http://www.perlmonks.org/?node_id=796987 is an example of the easiest way for a client to send some information to a web server. In this case the perlmonks.org server has some code that understands that the "?" means that there is some more info coming. "node_id" isn't some generic term, it is something that the permonks server specifically understands and will interpert as a request for this posting thread! That is what you get back... a page about this thread. This is called a "get" request.

There is another way to send info to the server, a "post" request. This is not sent as a simple URL like you can type into your browser.

This whole business can get complex in the details, but the basic idea is the web browser sends some info to the server and the web server responds with a web page that can be displayed in a browser (protocol is generically called HTTP). CGI provides the basic mechanism for this transfer of information from client to server, an API, Application Program Interface.


In reply to Re: CGI program by Marshall
in thread CGI program by manishrathi

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.