in reply to Re: Re: redirecting to a local file
in thread redirecting to a local file

Are you sure you're using the colon after Location as in Thelonius's example?
print "Location: file://c|/testfile.txt\n\n";
In your initial question you use print "Location $url\n\n";

Just checking that hasn't been overlooked!