Location with target ??? 
Author Message
 Location with target ???

Hi,

I'm using a simple script to implement the goto function with a form
seletc list ...

Command that send to the server the location's adress is (of course):
"Location: URL" ... it works very good and simply ...

So, I need to implement in my function the "Target Frame", such as
"http:// .... Traget=TOP"

Do You know how to do this ???

Thanks,

Dimitri Albino

P.S.: The script, called with statement :
http://server/cgi-bin/goto.pl?GOTO=http://page... is:

#!/usr/sbin/perl
# Perl script name: goto.pl

if ( $ENV{'REQUEST_METHOD'} eq 'POST' )
        {
           read(STDIN,$buf,$ENV{'CONTENT_LENGTH'});

        }
else
        {

        }

$i=0;

while ( $str[$i] ne '' )
        {
           ($name,$value) = split(/=/,$str[$i]);
           $name =~ tr/+/ /;
           $name =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
           $name =~ tr/a-z/A-Z/;

           $value =~ tr/+/ /;
           $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
           $i++;{"$name"} = $value;
        }

print "Location: $parm{'GOTO'}\n\n";



Fri, 14 Jan 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. print "Location: -with target?

2. Location: and targets help

3. Location: and targets help

4. Location target

5. Please help - using a target with the Location cmd

6. print Location and print "Location

7. no suitable installation target found

8. two variables, one target?

9. expecting target : dependencies ?

10. target help

11. perl targeted url redirection.

12. Setting target to 2 frames

 

 
Powered by phpBB® Forum Software