Try using the HttpUrlConnection class, set the requestMethod to post and add
the user name and password to the output stream (you'll need to set the
content-length header as well.
By the way, why does using post fix the problem of passing username and
password from the applet?
Kevin
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
Meredith Seitchik
Sent: 26 July 1999 17:28
To: [EMAIL PROTECTED]
Subject: showDocument() with a post to servlet
I am tring to pop another web browser from my applet and call a servlet that
requires a post. I use the showDocument() method in AppletContext passing a
URL with params. I can successfully call servlet as a get but not as a
post. I need to call it as a post due to security concerns of passing
username and password parameters from the applet. Does anyone have any
workarounds or suggestions in trying to accomplish what I have described
above? Please, email with your advice. Thank you in advance.
_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com
___________________________________________________________________________
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