I'm just learning PERL. I installed ActivePerl on my win computer and run TinyWeb server. I wrote a little "Hello, World!" script that responds properly when I access it with my browser. It's called index.pl and it prints all the html code out to the browser so this works.
What I would like to try is have index.pl redirect to a local .html file. When I try this I get a "403 Forbidden" error. This is what I wrote:
I also just used print "Location: mytest.html";Code:#!/usr/local/bin/perl -w use strict; my $URL="http://localhost/mytest.html"; print "Location: $URL\n\n";
I've put the .html file in the same folder as the .pl file as well as the root folder but I always get the same error. I can access the file by using localhost/mytest.html


Reply With Quote
Bookmarks