Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2022-01-25 03:03 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (65 votes). Check out past polls.