Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTP POST maximum size

 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that a HTTP GET url has some maximum length possibly constrained by the browser url textbox or the Apache/Tomcat's server limit.

Is there a configuration in Tomcat to limit the size of HTTP POSTs ?

Thanks

Pho
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Short answer NO
In SOAP applications people POST multiple megabyte data streams.
I suppose you could have your servlet look for the Content-length header and close the connection if it is too large.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic