Solved

View working CGI's???

Posted on 1998-07-02
4
138 Views
Last Modified: 2013-12-25
Hi!
I am currently a beginner at CGI, and sometimes when I run into CGI's, I'm interested in how they are coded, so I can learn.  I was wondering if there is any way to view the coding behind CGI's, just like in I.E. and Netscape, you can hit VIEW--->View source, to see the HTML coding.  Thank-you very much!

P.S.  Please do not submit 'No, this can't be done', as an answer... Thank-you!
0
Comment
Question by:eversoslightly
  • 2
4 Comments
 
LVL 5

Expert Comment

by:julio011597
ID: 1830413
So, as a comment, no, this can't be done.

-julio
0
 
LVL 8

Accepted Solution

by:
jhurst earned 20 total points
ID: 1830414
The answer is NO - but I will tell you why:

When a client machine submits a posting to the cgi the posted information is received by the server and then the server invokes the appropriate cgi.  Note, it does not run on your machine.  Secondly, many cgis, all of mine for example, are written in C and the source is not even present on the machine on which they run.

So the answer reallis NO!

Having said that - there are hundreds of free perl scripts cgis that you can find on the web and they will do almost anything that you may want.

0
 
LVL 1

Author Comment

by:eversoslightly
ID: 1830415
Ah... OK... oh well.  I guess I'd better just give it up then!
0
 
LVL 8

Expert Comment

by:jhurst
ID: 1830416
Don't give up - there are some great perl scripts for cgi that are freely available and well worth a look.  You can even write them as shell scripts althjough this tends to be somewhat limiting.  I have written really simple cgis as shell scripts.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
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 the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
The viewer will learn how to count occurrences of each item in an array.

929 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

13 Experts available now in Live!

Get 1:1 Help Now