[Zope] content-type weirdness (was: Redirect weirdness)
Dieter Maurer
dieter@handshake.de
Sun, 3 Nov 2002 19:11:32 +0100
Ken writes:
> Again: External links on my page go to a script which builds the URL and does a RESPONSE.redirect. When the object of the redirect is a PDF, the script does not complete. It looks as if I need to set a content-type header at the same time, but how?
I do not know the reason for your problem.
But, I can assert that you do not need to specify a content-type
in the redirect. The "Content-Type" in the redirect specifies
the content type of the body of the redirect response
and not that of the redirected to page.
This body is usually something like: "When your browser does not
support redirects, please click here to come to the page."
I is unlikely that you send a PDF page as body of a redirect.
> And, out of curiosity, how does 'contype' get written to Z2.log as useragent for the failed calls?
Apparently, your browser sent this value as "User-Agent" in its request.
Dieter