Content length is already being set.

On Tue, 2003-02-18 at 11:41, Chris Nokleberg wrote:
> On Mon, Feb 17, 2003 at 07:16:53PM -0500, Hani Suleiman wrote:
> > In the servlet, check the user-agent. If it's 'contype', then just sent 
> > the content type of the response to application/pdf and return 
> > immediately. Also, check if the referrer is not null, and treat it the 
> > same way as the contype user-agent. Finally, to serve up the actual 
> > pdf, set the content disposition to 'inline; filename=report.pdf', and 
> > the content-type to application/pdf
> 
> For consistent behavior you also *must* set a proper content-length
> header. This of course requires buffering the generated PDF before
> sending it to the client.
> 
> -Chris
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
-- 
Peter Kelley <[EMAIL PROTECTED]>
Moveit Pty Ltd



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to