Servlet List,

Can anyone demonstrate with a code snippet how to send a http POST using a
new socket?

I already have the following code example that sends a http GET using
sockets.

         java.net.Socket socket = new  java.net.Socket(request.getServerName(),
request.getServerPort() );
       socket.setSoTimeout(timeout);

        PrintWriter out = new PrintWriter(socket.getOutputStream(), true);
        out.println("GET /servlet/" +servletName+ " HTTP/1.0);
        out.println("");


Regards

... Stuart





_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.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