I use the fpdf-class to generate a dynamic PDF. So far everything works fine and I get an output of a 100KB file that is just perfect.
Problem is, when accessing the file via HTTP_POST. It downloads the whole file, starts the plugin and starts downloading it again.
I already figured out that initialising a session right before the PDF-Output might cause Problems. but this double-Download behaviour I don“t have a clue about.
I figure it has something to do with the headers send.
URL: http://awa.td-fn.net/calendar/pdf_test.php
The headers that are sent by fpdf should be:
Header('Content-Type: application/pdf');
Header('Content-Length: '.strlen($this->buffer));
Header('Content-disposition: inline; filename=doc.pdf');
Anyone any Idea?
Thanks so far
Volker