<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p><span style="color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; line-height: 19.5px;">Hi Guys,</span></p>
<p><span style="color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; line-height: 19.5px;"><br>
</span></p>
<p><span style="color: rgb(36, 39, 41); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px; line-height: 19.5px;">I want to calculate all bytes when a request is sent to squid, including:</span><br>
</p>
<div style="color: rgb(0, 0, 0);">
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<ol style="margin:0px 0px 1em 30px; padding:0px; border:0px; font-size:15px; color:rgb(36,39,41); font-family:Arial,'Helvetica Neue',Helvetica,sans-serif; line-height:19.5px">
<li style="margin:0px 0px 0.5em; padding:0px; border:0px; word-wrap:break-word">the header length that client will send to squid</li><li style="margin:0px 0px 0.5em; padding:0px; border:0px; word-wrap:break-word">the post content length that send to squid</li><li style="margin:0px; padding:0px; border:0px; word-wrap:break-word">the response length squid will reply to client</li></ol>
<p style="margin-right:0px; margin-bottom:1em; margin-left:0px; padding:0px; border:0px; font-size:15px; clear:both; color:rgb(36,39,41); font-family:Arial,'Helvetica Neue',Helvetica,sans-serif; line-height:19.5px">
<code style="margin:0px; padding:1px 5px; border:0px; font-size:13px; font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif; white-space:pre-wrap; background-color:rgb(239,240,241)">logformat
 squid %ts.%03tu %6tr %>a %Ss/%03Hs <b>%<st</b> %rm %ru %un %Sh/%<A:%<a %mt <b>%st</b></code></p>
<p style="margin-right:0px; margin-bottom:1em; margin-left:0px; padding:0px; border:0px; font-size:15px; clear:both; color:rgb(36,39,41); font-family:Arial,'Helvetica Neue',Helvetica,sans-serif; line-height:19.5px">
In the squid config file, I can only set <strong style="margin:0px; padding:0px; border:0px">%st</strong> which only include 1 and 3, seems squid ignore the point 2(the post content length is not included in the total size), it also happens when a post request
 occurs in squid https connection.</p>
<p style="margin-right:0px; margin-bottom:1em; margin-left:0px; padding:0px; border:0px; font-size:15px; clear:both; color:rgb(36,39,41); font-family:Arial,'Helvetica Neue',Helvetica,sans-serif; line-height:19.5px">
I don't need to know the request content, just want to know how many bytes the client totally send including the post and https bytes, is it possible to do this?</p>
<p style="margin-right:0px; margin-bottom:1em; margin-left:0px; padding:0px; border:0px; font-size:15px; clear:both; color:rgb(36,39,41); font-family:Arial,'Helvetica Neue',Helvetica,sans-serif; line-height:19.5px">
Is it possible to modify the squid source code if there is no parameter to control this? Is it just a counting logic that won't be complex? Any help would be much appreciated. Thanks.</p>
<span id="ms-rterangepaste-end"></span><br>
<p></p>
</div>
</div>
</div>
</div>
</body>
</html>