in reply to Getting the link to work

Hey Armando I copied and executed you program..It's fine upto listing the contents of directory.But when you start downloading file instead of the actual-path
i.e"c:/files/err"
it's taking
http://server/servlet-name/cgi-bin/<file-to-download>
This can be resolved by coding the actual path in the script as
foreach my $file (@files) { print $list->p( $list->a({-href=>$fileDir."/".$file}, $file) ); }

The world is so big for any individual to conquer

Replies are listed 'Best First'.
Re^2: Getting the link to work
by ArmandoG (Sexton) on Dec 26, 2007 at 18:07 UTC
    Hi it work thank you but now a new thing, when I click the filename that has the link and it gives me this error message Firefox doesnt know how to open this address; because the protocol (c) isnt associated with any problem. can you help me ??

      The 1st step is configuring your apache to permit the download of the files you need, for example with the URL http:://localhost/files/err/35854785.err.

      Now that you can download, redirecting the file request with

      $list->a({-href=>"/files/err/".$file}, $file) );

      This is the simples way to resolve the problem, AFAICS.