in reply to Perl output is not inducing file download as expected

JVBERi0xLjUKJeTw7fg

That does not look like a PDF file. It should start with %PDF- (see PDF). What you get is base64-encoded "%PDF-1.5".

Transfer-Encoding chunked

That's a little bit unexpected. You send the entire file, so there should be no chunked encoding.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^2: Perl output is not inducing file download as expected
by Polyglot (Chaplain) on Sep 23, 2023 at 11:48 UTC
    This observation was helpful. It helped me understand what might be happening. It's pretty tough to troubleshoot when one has no clear understanding of the problem. I had noticed that it lacked the PDF header that I was expecting, but it was your observation that helped me understand why. Thank you. As it turns out, this problem had nothing to do with the download's initiation, only with its quality during the transfer. For the full solution of what I found to work, and not work, see my own answer (to be posted shortly).

    Blessings,

    ~Polyglot~