in reply to Re^6: Perl CGI download file and redirect
in thread Perl CGI download file and redirect

A file download is not interpreted as HTML.

You can only output one set of headers. If you output the headers for the download first, you will never be able to send the user to another page to send more data to the user.

I suggest you learn HTTP and how the different content types and headers work.

  • Comment on Re^7: Perl CGI download file and redirect

Replies are listed 'Best First'.
Re^8: Perl CGI download file and redirect
by Yaerox (Scribe) on Nov 20, 2014 at 07:21 UTC
    Firstly thank you very much Sir!

    The day I got this problem, I was pretty whacked. I know HTTP and this in mind I was even more wondering why I didn't understood it the day. Anyway, today, mind is free and I'll do this using Javascript popup and timer.

    Thanks for your help. Have a nice day.