wood burning stoves 2.0*
The moose likes Websphere and the fly likes HTTP POST maximum data size? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "HTTP POST maximum data size?" Watch "HTTP POST maximum data size?" New topic
Author

HTTP POST maximum data size?

Kent Vanderwaal
Greenhorn

Joined: Jul 10, 2001
Posts: 3
I have successfully deployed a J2EE servlet, developed under Tomcat, on a Websphere 4.0 server. I build a .war file using jar and build.xml, moved it over to the WAS 4.0 machine and installed it, it's fine, it works. Only problem is when we
POST, we send lots of data in the POST and it gets truncated.
We POST (a put method), the request has lots of data, it gets truncated. We POST (a get method), the response comes back with all data (from the database), no truncation.
Is there a size limit somewhere in the server's properties that I haven't found yet? Any ideas?
Kent Vanderwaal
Greenhorn

Joined: Jul 10, 2001
Posts: 3
Found out that IBM HTTP Server is the culprit. If I go straight to Websphere through the port, it's not a problem.
Raj Varanasi
Greenhorn

Joined: Nov 20, 2001
Posts: 11
Hi ,
Did anybody found the problem with HTTP POST size limit.We are getting the same problem,POST data is getting truncated. Is it helps if we use Apache instead of IHS ??? Any help appreciated ...
Sean Sullivan
Ranch Hand

Joined: Sep 09, 2001
Posts: 427
Are you trying to POST a FILE ?
Or just post some generic form data?
If you want to post a FILE to the server, your html should look like this:

<FORM ACTION="/servlet/MyServlet"<br /> ENCTYPE="multipart/form-data"<br /> METHOD=POST>
What is your name? <INPUT TYPE=TEXT NAME=submitter>

What file are you sending? <INPUT TYPE=FILE NAME=secretDocument>

<input type=hidden name="serviceClass" value="FoobarServiceMgr">
<input type="submit" value=Submit>

</FORM>
Joseph Magerramov
Ranch Hand

Joined: Oct 28, 2002
Posts: 35
Try applying fixpac 4.0.3. That should solve the problem.
Raj Varanasi
Greenhorn

Joined: Nov 20, 2001
Posts: 11
We are POST ing form data .When it reaches App Server POSTed data got corrupted and we are facing problems in the application.We will try applying th fixpack 4.0.3 .Thanks for the updates
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTP POST maximum data size?