Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting raw http/post request data froom jsp

Status
Not open for further replies.

keak

Programmer
Sep 12, 2005
247
CA
Hi there,
I have an http/post request coming in as the following format.
Code:
protohttp: sending request:                                                                                                         
   POST /admintool/log.jsp HTTP/1.1                                                                                                 
   Host: dirtysock2.ea.com                                                                                                          
   Content-Length: 11672                                                                                                            
   Connection: Close                                                                                                                
   User-Agent: Custom/1.1                                                                                                           
   Accept: */*

text data follows here
.
.
.
.
.

Is there a way I can get the text data into a string. The only thing with this is that the data is not associated with a variable name (when we use a form to post to the jsp), but sending a raw http request.

If its from a form, I am able to use teh request.getParameter to get the data I need.

Any help on this is appriciated.
 
Get the input stream from the request object, and read the stream.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Thanks.
The getHeader method did the trick. ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top