On 1 Sep 2005 at 12:40, Perrin Harkins wrote:
> 
> The Location header is for redirects, not for internal redirects.
> You're doing too many things at once here.  Just drop all of this and do
> a normal redirect to the file.  You can use CGI.pm's redirect()
> function, or do something like this (mod_perl 1.x code):
> 
>   use Apache::Constants qw(REDIRECT OK);
>   my $r = shift;
>   my $location = 'http://example.com/Myzip.zip';
>   $r->headers_out->set(Location => $location);
>   $r->status(REDIRECT);
>   $r->send_http_header;
>   return OK;
> 
> - Perrin

I did get carried away abit with the redirection, I was thrahing around 
by that time. Interestingly you haven't use content-dispostion either.

In the end I created 2 scripts, one to archive and dump the file 
somewhere there server could see it before handing it to another to 
redirect. The redirect I practically lift out of Chp 4 of the Eagle book. 

The first script ends with a return REDIRECT; and the second ends 
with an return OK; I have a sneaky feeling that I may be doing that 
wrong and should return OK with both and set the status as you 
have done.

I too read soemwhere that the content-dispostion wasn't always 
correctly implemented. MS do have a doc on their knowledge base 
(q260519) about content-dispostion so they seem to think they 
implement it correctly.

Thanx Perrin. You have been v. patient.
Dp.







~~
Dermot Paikkos * [EMAIL PROTECTED]
Network Administrator @ Science Photo Library
Phone: 0207 432 1100 * Fax: 0207 286 8668

Reply via email to