Solved

What to I need to get started?

Posted on 1997-10-03
1
139 Views
Last Modified: 2013-12-25
What exactly do I need to get started?

I got VisualC++ software..
But I guess that some more things are neeed to get the scripts for the web working...  

And are the extra files avalible to be downloaded from the net for free?..

~Gizmo
0
Comment
Question by:Gizmo
1 Comment
 
LVL 7

Accepted Solution

by:
faster earned 100 total points
ID: 1830724
You need not anything else.  CGI program is actually very simple, it only requires you to read from the stdin/environment variables, and write output to stdout.  That's it.  If you are unfamiliar with CGI, first you'd better get a book to know what the standard is.  When you know the protocol, writing a program for it is a piece of cake.

In short, you need to get the envrionment variable "CONTENT_LENGTH", the read from stdin that number of bytes, which takes the form of "name1=val1&name2=val2...".  Then you need to a procedure called "unescaping", which means to convert al the "+" to " " and "%xx" to its ascii value.  Now you get all the information sent to your cgi and need to write whatever your output to the stdout.  It must starts with this:       

printf("Content-type: text/html\r\n\r\n");

However, you may need a web server on your desktop so that it is easier for your test, then I suggest you download a free web server from the net (I myself is using microsoft personal web server)

Hope this helps
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now