Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

EasyPopulate Froogle SSL Fails


adam5532

Recommended Posts

I have installed EasyPopulate 2.62 with a Sept 10, 2003 snapshot (but had the same problem with previous versions) and get an error when downloading the Froogle file when accessing the Admin panel in SSL mode:

 

"Internet Explorer can not download ...ownload=stream&dltype=froogle from (my domain)"

 

When I change to non-secure the download has a file name and works fine. I normally access my Admin panel securely, so this is a slight inconvenience.

 

Is there a way to fix it so that the EP Froogle download will work when accessing EP in secure (https://) mode?

 

- Adam

Link to comment
Share on other sites

  • 1 month later...

To allow download of the export files in easypopulate when using SSL / HTTPS

 

Change http header setting for pragma in easypopulate.php

 

	// now either stream it to them or put it in the temp directory
if ($download == 'stream'){
 //*******************************
 // STREAM FILE
 //*******************************
 header("Content-type: application/vnd.ms-excel");
 header("Content-disposition: attachment; filename=$EXPORT_TIME.txt");
//  header("Pragma: no-cache");  comment out or delete this line
 header("Pragma: ");  // add this line
 header("Expires: 0");
 echo $filestring;
 die();
} else {
 //*******************************
 // PUT FILE IN TEMP DIR
 //*******************************

while (!succeed) {try()};

 

GMT -6:00

Link to comment
Share on other sites

  • 3 months later...

Thanks for the great information. I've been scratching my head over this all night only to find this post and solve it in 5 minutes....... Here's what I did based on Tom's suggestion. This code basically just makes sure that EP will work both in SSL and NON SSL connetions: (believe it or not, this is my first post and one of my first attempts at PHP with NO programming background, but it works.)

.
.
.
 //*******************************
 // STREAM FILE
 //*******************************
 header("Content-type: application/vnd.ms-excel");
 header("Content-disposition: attachment; filename=$EXPORT_TIME.txt");
// Netchanic Edit - check for NONSSL Connection and set the proper Pragma line
 if ($request_type== 'NONSSL'){
 header("Pragma: no-cache");
	 } else {
 header("Pragma: ");
 }
 header("Expires: 0");
 echo $filestring;
 die();
.
.
.

 

Big Thumbs Up for TomThumb

 

Jimmyz

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...