• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

request content length question

 
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would like to know how much a request parameter contributes to the request content length. (I would like to in a multipart form submission
subtract from the total request length the contribution of request
parameters that are not uploaded files).
Can this be done and is it accurate?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
With a normal request, it refers to the length of the content body - I don't know what the implication is in multi-part requests, but you might look at the HTTP standard look for RFC 2616 here.
Bill
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can also check out
http://www.servlets.com/cos/faq.html

Search on this page for the first instance of the word "configure".

The question being answered there is different than yours, but it contains good information on using the COS package to do what you want. (Modify where it says "If you want to have a maximum file size..." to "If you want to know the size of only the files in the POST...")
 
reply
    Bookmark Topic Watch Topic
  • New Topic