Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't download in admin while on SSL?


peego

Recommended Posts

Posted

I have my admin section secured with htaccess and also SSL.

 

but when its in SSL mode (HTTPS), I can't download my backup or easypopulate file in the admin section.

 

and when I turn off SSL in configure.php so its (HTTP), the download for backup and easypopulate works fine.

 

Is there a way to be able to download even while in SSL mode? instead of switching to non-SSL when I need to backup?

Posted

In backup.php

 

under

 header('Content-type: application/x-octet-stream');
header('Content-disposition: attachment; filename=' . $backup_file);

 

add

 if ($request_type== 'NONSSL'){
header("Pragma: no-cache");
 } else {
header("Pragma: ");
}

 

In easypopulate.php

 

replace

	header("Pragma: no-cache");CODE] 

with 
[CODE]if ($request_type== 'NONSSL'){
header("Pragma: no-cache");
 } else {
header("Pragma: ");
}

while (!succeed) {try()};

 

GMT -6:00

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...