Nic, thanks for your suggestions. Actually, I am trying to use SSL now. Can
you
recommend some articles or documents about it? Thanks
Liwen
----- Original Message -----
From: "Nic Ferrier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 18, 2000 1:48 AM
Subject: Re: is out.flush() or out.close() necessary ?
> >>> Liwen Chen <[EMAIL PROTECTED]> 17-May-00 1:35:57 AM >>>
>
> >Hi, Nic, thanks a lot for your clear explanation.
> >What I did is using URLConnection to talk to the other
> >servlet. But my friend (who is partly my boss and will use the
> >programs:-)) said it's not reliable nor safe to use http connection
>
> >because the information transferred is some secure message.
> >Any way to make sure it is secure?
>
> Your friend is basically wrong.
>
> How are you making the data transferred over the socket secure?
>
> If you can transmit data securely over your socket you can do it by
> using HttpURLConnection.
>
> As for relkiability - an HttpURLConnection is more reliable because
> *you* don't have to do the work implementing the HTTP protocol for the
> message exchange. Therefore you are less likely to make a mistake.
>
> It is also possible to use Sun's SSL implementation to do a
> HttpsURLConnection which is as secure as you would need to be.
>
>
> Nic
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html