Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
The one piece of ambiguity on this topic in the RFC is that the meta variables such as REQUEST_METHOD are described in the document as being made available to the system in a "system-defined manner". For webservers I've worked with, they're available as environment variables.

In the scary times of Windows 3.x, there was some piece of software called WinHTTPD by Robert B. Denny. It had a different implementation of CGI to work around the limitations of Windows 3.x, and to allow writing CGIs in almost all available languages. This implementation was creatively called Windows CGI. Google found a copy of the spec at http://wwwusers.di.uniroma1.it/~reti/Reti2_html/docum/CGI/WINCGI.HTM, and a newer one at http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WIL~Extenders/Winsock+WebSite~Windows~CGI~1.3a~Interface.txt. According to http://www.sc.ehu.es/scrwwwsr/isapi/ch03.htm, O'Reillys HTTP server named WebSite also supported that protocol.

The main difference here is that headers are not passed via the environment, but via an INI file created for each request. Also input and output are not the stdio file handles, but instead files created by the webserver. All of this makes access very easy, all your CGI ("backend" in the spec) code needs is file I/O and optionally access to the GetPrivateProfileString() function to read the INI file. This allowed to use almost any programming language, you could even use DOS programs to implement a "Windows CGI"-conforming application.

The obvious downside is that WIndows CGI creates a lot of temp files, but then again, Windows 3.x is not your high-performance server platform anyway.

Someone even has written an interface program that runs as a classic CGI, creates the required files for the Windows CGI spec, and launches ancient an Windows CGI program.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

In reply to Re^2: How to check the request is (GET OR POST) in CGI by afoken
in thread How to check the request is (GET OR POST) in CGI by kanewilliam7777

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, 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?
    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 romping around the Monastery: (13)
    As of 2019-06-18 14:39 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      Is there a future for codeless software?



      Results (82 votes). Check out past polls.

      Notices?
      • (Sep 10, 2018 at 22:53 UTC) Welcome new users!