content-type not working after 1.7.4 upgrade

Problems with the Windows version of XAMPP, questions, comments, and anything related.

content-type not working after 1.7.4 upgrade

Postby Legster » 12. April 2011 20:23

The following is no longer working after upgrading from Xampp 1.7.1 to 1.7.4:
header("Content-Type: application/pdf");

After viewing the headers, the content-type is text/html. If i downgrade back to 1.7.1 it works fine. Anyone know a setting that could effect this? I had the same issue on our Solaris xampp upgrade.
Posts: 1
Joined: 12. April 2011 20:18

Re: content-type not working after 1.7.4 upgrade

Postby WilliL » 12. April 2011 21:47

on my config it works fin3 on xamp 1.7.3 and 1.7.5beta (xampp standard settings) using firefox 3.6.16, IE6, Opera 11.01

Code: Select all
/* downloads test.pdf file as downloaded_test.pdf
header('Content-Transfer-Encoding: binary');
header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="downloaded_test.pdf"');
/* shows test.pdf file in browser
header('Content-type: application/pdf');


.. but I have no idea, what you want to ask .. :shock:
Posts: 660
Joined: 08. January 2010 10:54
Operating System: Win7Home Prem 64 SP1

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 36 guests