1,105,288 Community Members

method POST size url

Member Avatar
softDeveloper
Junior Poster in Training
76 posts since Nov 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Hi all,

I want to send big amounts of data, like a very big text with 3 Mb from an iframe to a database. For this I send the text from javascript side to JSP and from here to MySQL.

When the text is big like this the text is not sentm the send method doesn't seem to work. What is the limit size? Is there a way to go around it?

Member Avatar
stbuchok
Posting Shark
957 posts since May 2011
Reputation Points: 123 [?]
Q&As Helped to Solve: 142 [?]
Skill Endorsements: 2 [?]
 
0
 

It depends on the web server you are using. For IIS I believe the default is 4MB, for Apache I believe it is 2MB. Not sure about others.

Also, yes you can increase the size.

Member Avatar
softDeveloper
Junior Poster in Training
76 posts since Nov 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Hi thanks, and how can I increase it?

Member Avatar
softDeveloper
Junior Poster in Training
76 posts since Nov 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I think I'm not doing something right. Because I'm sending the contents of an iframe about 60kb and the send fails:


var url="replaceText4.jsp";
url=url+"versao="+version+"&work="+actualWork+"&secName="+secName+"&text="+text;


xmlHttp.open("POST",url,true);
xmlHttp.send(url);

I want to send the text that comes from an iframe, and when it is too big it fails.. I'm sending these parameters to a jsp where I get the by request.getParameter(...)

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article