Re: [MacPerl-AnyPerl] IP Push I Guess ??

[email protected] (David Iberri) Thu, 29 Nov 2001 18:51:17 -0800
Newsgroups perl.macperl.anyperl
Message-ID <B82C3425.BA6%[email protected]>
John,

Assuming you have control over the remote script, try a redirect a-la
CGI.pm.

Inside the remote script:

use CGI;

$cgi = new CGI;

.... # process form data

# Redirection header
print $cgi->redirect("http://<yourserver>/path/to/your/script.pl");

Make sure that the last line is the only output to STDOUT, otherwise the
redirection won't occur.

Any output from script.pl on <yourserver> will be displayed in the user's
browser.

Regards,
David Iberri 

on 11/29/2001 5:21 PM, John Murray at [email protected] wrote:

> If I send a form to a script that the sends back some html, the browser
> displays that.
> 
> Now, obviously it's an IP address thing. You know, you pass your IP address
> along with the form data when you click submit.
> 
> What is it then that stops people pushing a html file at a known IP that is
> currently online.
> 
> My endpoint is this. I want to be able to send a form to a remote script and
> then have that script call a script on my server that writes a file AND
> sends html back to the browser whose form started the whole process.
> 
> I use perl.
> 
> Any thoughts, leads or answers?
> 
> T.I.A.
> 
> 
> John
>