Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to determine how big the Request.Form object is?

I am making a web service and a portion of it includes enforcing different maximum form sizes on different pages.

Other than running through the Form object and doing a .Length on all of the strings, is there a clean way of quickly determining the size of the submitted form values? Particularly in the context of a POST request.

like image 722
Earlz Avatar asked May 31 '11 06:05

Earlz


1 Answers

Is this an ASMX web service? Then what about Request.TotalBytes?

like image 87
M4N Avatar answered Sep 30 '22 23:09

M4N