phranque - 9:02 pm on Jun 15, 2012 (gmt 0)
welcome to WebmasterWorld, salman!
(sorry i missed that before)
content-disposition: attachment is meant to force a download - isn't it?
yes, rocknbil, my mistake - i copied some standard code and didn't finish editing before submitting.
salman - you specifically DON'T want the "content-disposition: attachment" header and you MUST have the "Content-type:application/pdf" header.