[Xerte] Headers
Paul Swanson
Paul.Swanson at harlandfs.com
Tue Sep 1 16:08:56 BST 2009
I can't say that I understand much about headers, but there is a wealth
of information at this page:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
Maybe you can make some sense of it.
Cheers,
Paul
> -----Original Message-----
> From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-
> bounces at lists.nottingham.ac.uk] On Behalf Of Patrick Lockley
> Sent: Tuesday, September 01, 2009 3:00 AM
> To: Xerte discussion list
> Subject: [Xerte] Headers
>
> Hi all,
>
> In toolkits, in the download functions (export and scorm), the php
code
> is thus
>
> header("Content-Length: " . strlen($this->archive));
> header("Pragma: public");
> header('Content-disposition: attachment; filename="' . $name .
> '.zip"');
> header("Cache-Control: no-cache, must-revalidate, post-check=0,
> pre-check=0");
> header("Expires: Sat, 01 Jan 2000 12:00:00 GMT");
> header("Content-Transfer-Encoding: binary");
> print($this->archive);
>
> which is what we release in the zip
>
> however, I've just been tinkering and found that it doesn't work, and
I
> have to set it to
>
> header("Content-Length: " . strlen($this->archive));
> header("Pragma: public");
> header('Content-disposition: attachment; filename="' . $name .
> '.zip"');
> //header("Cache-Control: no-cache, must-revalidate, post-check=0,
> pre-check=0");
> //header("Expires: Sat, 01 Jan 2000 12:00:00 GMT");
> header("Content-Transfer-Encoding: binary");
> print($this->archive);
>
> to make it work.
>
> Any one understand what this does differently and care to let me know?
>
> Merci
>
> Patrick Lockley
> IS Learning Team
> King's Meadow Campus
> Tel: 0115 84 68882
>
> My Page on Community - http://webapps.nottingham.ac.uk/elgg/cczpl
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
More information about the Xerte
mailing list