The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Reading Params in POST

Posted by sathish on June 26, 2001 at 11:43 AM

There are two ways u can accomplish this in java servlet
You can just get HttpServletRequest.getInputStream() or you can direct use HttpServletRequest.getParameter(" ");
Hope this is of help to u

> I am wandering whether you know how to submit a post request to a server with a parameter in the body of the post.

> > Hello,

> > I am writing a simple implementation of a web Server which can read the Request from HTTP based clients
> > and provide the resource requested.

> > I am getting the header of the request.I have succeded in responding to the GET request But how do i read parameters (Key/value pair) from POST request?





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us