Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I view the size of the data posted to a form in the Chrome Developer Tools?

I am going through an old ASP.NET app and turning off ViewState for Gridviews where it's not needed. This is reducing the amount of information sent to the server on postback, but I am curious how much.

In FireBug, I can go to the Net tab, apply the HTML filter, and expand the particular aspx file that got posted. Beneath that, I can click the "Post" tab, and one of the values it shows is the Content-Length of the post. (I had some pages uploading 4 megs on postback... YIKES!).

Does anyone know how to see this value in the Chrome developer tools?

like image 470
Chris Avatar asked Nov 11 '10 16:11

Chris


People also ask

How do I see post payload in Chrome?

To view the request or response HTTP headers in Google Chrome, take the following steps : In Chrome, visit a URL, right click , select Inspect to open the developer tools. Select Network tab. Reload the page, select any HTTP request on the left panel, and the HTTP headers will be displayed on the right panel.

How do I find my browser payload size?

The simplest way to analyze the payload is to enable the network-monitoring tool of the browser, and capture the network traffic of HTTP requests. With this tool you can see: how many HTTP requests the browser is sending to the server.


1 Answers

As of Chrome 10, they've added the feature! It's Content-Length under the Request Headers section in the Headers tab. This tab is available when you select Network from the toolbar and then click on a file.

I'm going to pretend they did this because I filed the feature request. I changed the world!

like image 137
Chris Avatar answered Sep 28 '22 06:09

Chris