in reply to Re^2: Perl, Permission and Browsers
in thread Perl, Permission and Browsers

Please post the relevant sections of the two redirections. It seems strange to me that you are able to manage UNIX "-rwxrwxrwx" permissions together with files in a Win32 filesystem like "D:\...\cgi-bin\folder.cgi", so I'd rather taking a look at it.

Flavio (perl -e "print(scalar(reverse('ti.xittelop@oivalf')))")

Don't fool yourself.

Replies are listed 'Best First'.
Re^4: Perl, Permission and Browsers
by Anonymous Monk on Apr 21, 2005 at 12:42 UTC
    well, quite frankly this -rwxrwxrwx does not seem to have any impact, I only got that from my ftp-program, I'm aware that the server is on Win NT, but I only have ftp access to it.
    the first redirection is in intern.htm, the file contains only
    <META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://www.lent.ch/intern/cgi-bin/main.cgi">


    the second one is in main.cgi and looks like this:
    <td> <a href='/../intern/cgi-bin/folder.cgi?intern/$file'> $file </a></td>
    so its just a simple html-link, but these don't work with IE. However, if I create a link to a regular html-file (inside the protected folder), this works fine.
Re^4: Perl, Permission and Browsers
by Anonymous Monk on Apr 21, 2005 at 12:41 UTC
    well, quite frankly this -rwxrwxrwx does not seem to have any impact, I only got that from my ftp-program, I'm aware that the server is on Win NT, but I only have ftp access to it.
    the first redirection is in intern.htm, the file contains only
    <META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://www.lent.ch/intern/cgi-bin/main.cgi"></META +>


    the second one is in main.cgi and looks like this:<br> <td> <a href='/../intern/cgi-bin/folder.cgi?intern/$file'> $file </a>< +/td>

    so its just a simple html-link, but these don't work with IE. However, if I create a link to a regular html-file (inside the protected folder), this works fine.
      The second URL is suspect. Have you tried to remove the first part, like:
      <a href='/intern/cgi-bin/folder.cgi?intern/$file'>
      This should give you an absolute URL http://www.lent.ch/intern/cgi-bin/folder.cgi?intern/$file which I suspect is what you need. Take also into consideration mangling $file to escape bad characters that may tamper the final URL.

      Flavio (perl -e "print(scalar(reverse('ti.xittelop@oivalf')))")

      Don't fool yourself.