Solved

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

Posted on 1997-12-12
2
176 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Suggested Solutions

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.
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

756 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