Solved

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

Posted on 1997-12-12
2
153 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
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
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…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…

771 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

11 Experts available now in Live!

Get 1:1 Help Now