in reply to Re^5: Perl cgi script for directory listing and file downloading!! Problem: Unable to download the file
in thread Perl cgi script for directory listing and file downloading!! Problem: Unable to download the file

Ok, I have successfuly opened a file in browser directly using this URL: http://localhost:8080/Documents/dbschema.pdf now in script, should i use this? opendir(DIR,'http://localhost:8080/Documents/')

?

  • Comment on Re^6: Perl cgi script for directory listing and file downloading!! Problem: Unable to download the file
  • Download Code

Replies are listed 'Best First'.
Re^7: Perl cgi script for directory listing and file downloading!! Problem: Unable to download the file
by Corion (Patriarch) on Nov 05, 2014 at 14:55 UTC

    You still need to learn about the difference between access via HTTP and local access. HTTP uses http:// URLs. Local access uses file paths like C:\www\Documents\. readdir does local access. The web browser does HTTP access.