I was having problems getting an HTML export to work until I made two changes to the source code of the module. The first is mentioned in this bug report:

http://drupal.org/node/1988388

and the second I detail here. On this line:

http://drupalcode.org/project/html_export.git/blob/9a5ea2a674a056f2fc1a5...

the code uses $_SERVER['HTTP_ORIGIN'] which seems to be a browser-specific header:

http://stackoverflow.com/questions/4566378/how-secure-http-origin-is/808...

Changing the line to use:

"http://" . $_SERVER['HTTP_HOST']

enabled the code to work in Firefox, although it's worth checking the PHP documentation for the REMOTE_HOST and HTTPS keys of $_SERVER to do this properly.

Comments

PoojaAgarwal’s picture

Issue summary: View changes
PoojaAgarwal’s picture

You can use $base_url instead of any $_SERVER keys. $base_url will work in every browser

  global $base_url;
  $root = $base_url . "/";