Possibly, but what if I need to send a binary file some time in the future? Or multiple files? Or files and data?
The problem is I need to be able to create a distribuatable client that I can trust to send data in a decipherable way regardless of what kind of file(s) are pumped through it. It may mean using a ServletInputStream on the server side and sifting through the data myself.
I am hoping that there is something I can use that is similar to javax.mail.internet.MimeMultipart to assemble the pieces and send them off as part of a POST request. Failing that, some insight into how a POST request is formatted might help.
Thanks.
> -----Original Message-----
> From: Jason Hunter [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 03, 1999 11:33 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Sending Multipart POST data
>
>
> Kalbrener, Cyrus wrote:
> >
> > I know that you can use various file upload servlets, and
> that you can
> > send a POST message vi ServletMessage or HttpMessage, but has anyone
> > managed to use Java to SEND a multi-part/mixed POST request to a
> > servlet?
> >
> > Part of my issue is the need to send a formatted text file to a web
> > server via SSL. I could send the text file data as a
> parameter value,
> > but I don't want to lose formatting or potentially run into
> memory or
> > size issues.
> >
> > Any suggestions?
>
> Sounds like you're using an applet or application to do the sending.
> In that case you might as well just send the file contents raw as the
> body of the message, with maybe an encoded query string specifying the
> name of the file.
>
> -jh-
>
> --
> Jason Hunter
> [EMAIL PROTECTED]
> Book: http://www.servlets.com/book
> Article: http://www.javaworld.com/jw-12-1998/jw-12-servletapi.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
