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

Re: C++ and VB

by plaid (Chaplain)
on Aug 08, 2000 at 21:56 UTC ( #26835=note: print w/replies, xml ) Need Help??


in reply to C++ and VB

All languages that have a concept of standard input/output and environment variables can be used for CGI. The webserver will set the appropriate environment variables (CONTENT_LENGTH, QUERY_STRING, etc.), and pass any POST data on to the program as standard input. And, as with perl, any data printed to standard output is sent to the browser.

If you want to check out some source for a CGI written in C, check this page. The util.c file at the bottom of the page is a commonly-used utility to take care of the parsing of query strings. I believe there are security holes in it somewhere, so I wouldn't recommend actually using it, but it's a good thing to look at to understand CGI in other languages. It's also a good thing to look at to see why perl's string parsing is so well suited to CGI.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://26835]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2020-05-30 10:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (171 votes). Check out past polls.

    Notices?