Posts tagged as:

url ftp

It is common scenario when you need to tell the browser to redirect or look elsewhere for a page because you don’t want to produce a document yourself.
For example http://mydomain.com/rd.pl?url=http://blogs.mydomain.com should redirect to a page/url http://blogs.mydomain.com
Here is perl code to redirect web page to http://blogs.cyberciti.biz/hm/:
#!/usr/bin/perl

use strict;

use warnings;

my $url = “http://blogs.cyberciti.biz/hm/”;

print “Location: $url\n\n”;

However this code misses [...]

{ 2 comments }