httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axel-St├ęphane SMORGRAV <Axel-Stephane.SMORG...@europe.adp.com>
Subject RE: [users@httpd] RewriteMap and sending more then 1 var
Date Thu, 18 Aug 2005 14:06:51 GMT
A redirection (HTTP 302 or friends) does not return any contents. It merely directs the browser
to request another URL which will hopefully return the PDF document. That response should
contain the header "Content-Type: application/pdf" - not the redirect. Setting the header
in a redirect will have no effect on the response serving the PDF file.

It is your php program that should set the Content-Type header. Look at other postings on
this list for the syntax.

As an aside, the [L] ( as in [R,L] ) is not necessary either since if the rewrite rule condition
triggers, the redirect will be immediate and no more rewrite rules will be evaluated.

-ascs

-----Original Message-----
From: Tony VanScoy [mailto:tvanscoy@gmail.com] 
Sent: Thursday, August 18, 2005 2:20 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] RewriteMap and sending more then 1 var

> Just one thing: why do you set the Content-Type [T] of a redirect [R]??
> 
> -ascs

Because I'm new and I don't know any better. I figure that since I'm sending a PDF, why not
set the type? Am I wrong for doing this?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message