Probably this should be default for streaming. do you agree? Massimo
On Oct 31, 8:31 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I was following the example here: > > http://groups.google.com/group/web2py/browse_thread/thread/f15668449a... > > to stream PDF files. Everytime I would try to open a pdf file, > though, IE6 would error "File Not Found". It worked fine in Firefox. > Turns out it's a bug in IE6 with how CherryPy sets it's default > response headers. Setting the additional headers of Pragma and Cache- > Control fixed it: > > response.headers['Content-Type'] = "application/pdf" > response.headers['Content-Disposition']="attachment; > filename=BarCodes.pdf" > response.headers['Pragma']="cache" > response.headers['Cache-Control']="private" > return response.stream(pdfContents,chunk_size=4096) > > Just wanted to get that out there so it would be searchable in the > future. > > Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---