Title: RE: Redirect to CGI w/ POST
Chris !!!
Can you tell me how to do a post using URLConnection object ...I thought it was doing only GET. Its very interesting .
Thanx in Advance
Ajai
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Chris Murphy
Sent: Sunday, March 19, 2000 2:38 PM
To: [EMAIL PROTECTED]
Subject: Re: Redirect to CGI w/ POST

Are you not wanting to use URLConnection for a reason, or is it that you want to know how to do a POST from the connection?

If you're using 1.2 you can use the HttpURLConnection class to do a POST pretty easily.  I you're using 1.1, it's not as easy, but still possible.

"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.
>
> Thanks for you help,
> David
>
> ___________________________________________________________________________
> 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

--
I am free and have a destination too far,
                      .... I will keep flying.

___________________________________________________________________________
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