Let's suppose we are developing HttpClient.java program.
when you request html or servlet through "GET".
you should attach parameter string as "name=value" at end of URL.
But when you request servlet or cgi through "POST"
you should connect to WebServer as url "http://hostname/servlet/ServletName".

URLConnection url = new URL("http://hostname/servlet/ServletName").openConnection();
urlconnection.setDoOutput(true);
                    PrintWriter printwriter = new 
PrintWriter(urlconnection.getOutputStream());
                    printwriter.print("name=value&name=value");
                    printwriter.close();

And send parameters as string through OutputStream or Writer...
Did you satisfy?

^^     <-- my eyes..

___________________________________________________________________________
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