You must enable HTTPS function of the web server.

your browser------(HTTP, default port 80)  --->|Web server
           |------(HTTPS, default port 443)--->|

You din't enable this HTTPS function. That's why the bowser returns the
error messages (site cannot be found). Imagine that you have a house (web
site) with two doors (HTTP & HTTPS)
If you don't open the HTTPS door, no one can get in your house (through
HTTPS door) to get anything. (Althought they can get into your house through
HTTP door)

-----Original Message-----
From: Murphy, Todd [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 9:32 AM
To: [EMAIL PROTECTED]
Subject: problem creating a PDF using https


Greetings,

I'm seeing an issue when using https that I'm hoping for some advice on.  I
have a servlet that returns content to the browser window (IE5.5) in PDF
format.  This works great using http, but fails with the following message
when I switch to SSL:

Internet Explorer cannot download <filename> from server.
Internet Explorer was not able to open this Internet site.  The requested
site is either unavailable or cannot be found.


pDFList = (pDFList) custExtension.getInvoiceDetailPrint( invoiceNumber );

ServletOutputStream sout = response.getOutputStream();
response.setContentType( "application/pdf" );
response.setHeader( "Content-disposition", "inline; filename = example.pdf"
);
BufferedOutputStream bos = null;
bos = new BufferedOutputStream( sout );
for ( int i=0; i<pDFList.size(); i++ )
   {
   bos.write( pDFList.get( i );
   }
if ( bos != null )
   {
   bos.flush();
   bos.close();
   }

In the servlet snippet above, pDFList contains an ArrayList of lines in the
PDF.  Can anyone provide insight into what I may need to get this to work
within https?

Thanks!
Todd Murphy
Hershey Foods Corporation

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to