Content-Length和body_bytes_sent

[map@cq01-map-lbsop-hbase conf]$ curl 'http://10.46.43.14:8100/50x.html' -v
* About to connect() to 10.46.43.14 port 8100
* Trying 10.46.43.14... * connected
* Connected to 10.46.43.14 (10.46.43.14) port 8100
> GET /50x.html HTTP/1.1
User-Agent: curl/7.12.1 (x86_64-redhat-linux-gnu) libcurl/7.12.1 OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6
Host: 10.46.43.14:8100
Pragma: no-cache
Accept: */*

< HTTP/1.1 200 OK
< Server: nginx/1.9.9
< Date: Thu, 24 Aug 2017 07:52:21 GMT
< Content-Type: text/html
< Content-Length: 537

[map@cq01-map-lbsop-hbase01.cq0 conf]$ curl 'http://10.46.43.14:8100/50x.html' > aac && ls -al aac
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 537 100 537 0 0 151k 0 --:--:-- --:--:-- --:--:-- 524k
-rw-rw-r-- 1 map map 537 Aug 24 15:53 aac

10.46.43.14 - - [24/Aug/2017:15:53:15 +0800] "GET /50x.html HTTP/1.1" 200 537 "-" "curl/7.12.1 (x86_64-redhat-linux-gnu) libcurl/7.12.1 OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6"
[map@cq01-map-lbsop-hbase01.cq01.baidu.com conf]$

都是537!

1.实际的文件大小

2.nginx已发送的消息体字节数

3.content-length

原文地址:https://www.cnblogs.com/zlingh/p/7423538.html