Is it ie6 or acroread saying it can't open the file? It it is acroread it may be that tomcat 4 is sending as ASCII instead of binary.
Best Regards Nicolas Ivering Jay Teo wrote: > > Hi, > > I have been using iText to generate PDF from Java servlets for some > time now and it has worked great until I upgraded Tomcat from 3.3 to 4.0. > > After the upgrade, it's still working fine with IE 5.5. IE 6.0, > however, would pop up a window asking the user if he wants to Open or > Save the file. And regardless of which one you pick, it would say it's > unable to open. > > Using a program called JSnoop to trace the HTTP communication between > IE and Tomcat, I got the following headers: > > > ----- (TOMCAT 3.3) ----- > > HTTP/1.0 200 OK > Pragma: no-cache > Expires: Thu, 01 Jan 1970 00:00:00 GMT > Cache-Control: no-cache > Content-Type: application/pdf > Content-Length: 12543 > Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java > 1.3.0; Linux 2.2.16-22 i386; java.vendor=Sun Microsystems Inc.) > > > ----- (TOMCAT 4.0.3) ----- > > HTTP/1.1 200 OK > Content-Type: application/pdf > Content-Length: 12543 > Date: Mon, 22 Apr 2002 14:56:46 GMT > Pragma: no-cache > Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector) > Cache-Control: no-cache > Expires: Thu, 01 Jan 1970 00:00:00 GMT > > ------------------------------------------ > > > As you can see, they both have "Content-Type" set to > "application/pdf". So what is wrong here? > > I'm at a loss, any help/suggestions would be appreciated. > > > > -j > > > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions