Jo�o Robertson Kramer Santana wrote:
>
> How to make a servlet to call a Delphi CGI program or any other CGI
> program that expects to receive two parameters (name and password) via POST
> ? I know how to do it with GET paramaters, and now I need to do it with
> POST. Can someone give some examples ?
>

 This thread points out how important it is to read
suggested answers with a critical eye. But anyway.

 You don't have to write your own HTTP client code,
you can just use the normal java.net.* classes to
do POSTs, as described in:

 <URL:http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html>

 The POST body looks just like the GET query string,
but instead of glomming it onto the end of the URL,
you write it out as described above.

 A quick google search ought to get you a more
detailed description, and I suspect an servlet-interest
archive search would turn up some hits as well.



--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.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

Reply via email to