Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Files over SSL

Status
Not open for further replies.

DeepBlerg

Technical User
Jan 13, 2001
224
AU
Hi,

The following code prints a PDF file to the browser:

header("Content-type: application/pdf");
print(base64_decode($row["Image"]));

$row["Image"] is a BLOB field in a mySQL db.

This code works fine and displays the PDF in the browser until I load it through
When I do that it opens a file download box that attempts to download the .php page but fails when you click Save or Open.

Any ideas why it won't display normally through SSL?
 
I have this same problem. Were you able to solve this?
 
Maybe your server does not support SSL for all file types. Sometimes only .php .html etc are allowed through the SSL port.
 
Just posted the solution to such problem on this FAQ at IIS forum: faq41-5490
 
I am running on ASP.NET and my custom HTTP headers only have the following :

X-Powered-By:ASP.NET

and still can't download over SSL.

Any clues?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top