Solved

What to I need to get started?

Posted on 1997-10-03
1
141 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction:   Welcome to my first article ever. To begin with, the reason I write this article.  I participated in a question on Experts Exchange about the start command in Windows and there were some discussion about the usage. The discussio…
This article will show, step by step, how to integrate R code into a R Sweave document
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

786 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