Re: Using com.oreilly.servlet in https mode
"Paku, Neil" <[email protected]>
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <87EF6E23E5FBFC4290BF67724BF4A5725B2D64@DOIT-EX101.exec.ds.state.ct.us> |
Jason,
thanks for the reply. So if I have a standalone client that is
attempting to upload or download a file from an ssl enabled web server,
I use HttpsMessage but how, for an upload, do I attach the file to the
HttpsMessage object? Do I make one of the properties a data block
containing the file?
Cheers,
Neil.
-----Original Message-----
From: Jason Hunter [mailto:[email protected]]
Sent: Wednesday, May 14, 2003 9:18 PM
To: [email protected]
Subject: Re: Using com.oreilly.servlet in https mode
"Paku, Neil" wrote:
>
> Hi,
> I apologise if this question has an answer elsewhere; I had a
> look but could not find the exact answer I'm looking for.
>
> I want to write a class that uses com.oreilly.servlet to upload and
> download files from an ssl-enabled server. I saw the HttpsMessage
> class but could not tell if I needed to use this class instead of
> MultipartRequest, or with it, or whether what I want to do cannot be
> satisfied by the library.
For handling file uploads on the server, the servlet container takes
care of the HTTPS work so you just use MultipartRequest (or
MultipartParser) the same as with HTTP. When writing a standalone
client there's no container to help and you need to have more awareness
of the HTTPS communication, so use HttpsMessage there. It encapsulates
the HTTPS logic.
-jh-
________________________________________________________________________
___
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