Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: cgi redirect

by cLive ;-) (Prior)
on Nov 26, 2002 at 20:12 UTC ( [id://215917]=note: print w/replies, xml ) Need Help??


in reply to Re: •Re: cgi redirect
in thread cgi redirect

Poor man's solution:
#!/usr/bin/perl use strict; use warnings; use LWP::Simple my $url = 'http://some.domain/some/path/to/file.htm'; my $content = get $url; $content =~ s|</head>|<base href="$url"></head>|is; print "Content-type: text/html\n\n$content"; exit(0);

If you want to keep all links internal, it will take a while - especially if you take some time to think about why you want to mis-represent content's origin to users on that large a scale.

.02

cLive ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://215917]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2025-06-14 14:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.