Solved

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

Posted on 1997-12-12
2
171 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need some help in Batch file assigning variable value ? 4 76
excel file 5 76
Need script to search multiple files in one drive 13 55
change the windows script file to BAT 10 49
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

840 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