Solved

HELP...CALL AUTOMATICALLY A WEB SITE FROM INSIDE A CGI SCRIPT

Posted on 1997-12-12
2
164 Views
Last Modified: 2013-12-25
I am a student of systems engineering. So I am working in my thesis with some CGI-scripts but I'm using Informix 4gl Web Kit instead of Perl. So I would like to know how I can call automatically(without any link. I mean, If some condition get true then the CGI call another web site) a web site from a CGI, and if I can call another CGI from inside other CGI.
  If you know how to do it, please tell me.
 
  Thanks in andvance.

Augusto

acarnero@ven.net
0
Comment
Question by:acarnero
2 Comments
 

Expert Comment

by:aurelio
ID: 1831637
Well, I needed to do both things and , the only method i found to do it was :
Display first "Content-type: text/html" (I did it in C ; i dont know informix but sure that you can display text to stdout) with two blank lines and the html program ; this program can either jump to a web site (meta-http refresh=0 url=<website>) , or exec another cgi , (the url can be a local exe program) .  


0
 
LVL 1

Accepted Solution

by:
nanullnet earned 10 total points
ID: 1831638
Simply print to STDOUT the lines

"HTTP/1.0 302 Redirect\n"
"Location: http://where.you.want.it.to.go/there.html\n\n"

(minus the double quotes)

Depending on where you want to go.  You can also redirect to a CGI, so instead of the location to a html page, refer to a CGI script.
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

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…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
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 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…

809 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