"Meister, David R." wrote:

> Is there a way to redirect to a CGI script, from a servlet, using a POST
> request method?
>
> I am looking for an alternative to using URLConnection and a query string
> when I need to redirect.
>

Try casting your URLConnection to an HttpURLConnection instead.  Now you can
set the request method to POST and pass the parameters in the input stream
rather than as query parameters.  (You will need to format the input stream as
outlined in the HTTP specification.)

>
> Thanks for you help,
> David
>

Craig McClanahan

___________________________________________________________________________
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

Reply via email to