POST / HTTP/1.1
HOST: 139.196.14.7:2206
Content-Length: 2275
Connection: Close
<?xml version="1.0"?>
<Metrics DeviceName="devicename" DeviceId="2d" SiteName="sitename" SiteID="siteid">
<Properties>
<MacAddress>0012120938c7</MacAddress>
<IpAddress>172.16.33.112</IpAddress>
<HostName>139.196.14.7</HostName>
<HwPlatform>VC-1020</HwPlatform>
<Timezone>+08:00</Timezone>
<IANA>Asia/Shanghai</IANA>
<Dst>0</Dst>
<DeviceType>0</DeviceType>
<SerialNumber>1122334455667788</SerialNumber>
<BootTime>2017-07-19 15:46:35</BootTime>
</Properties>
<ReportData Interval="1">
<Report Date="2017-07-19">
<Count Status="GG" Exits="3" Enters="0" EndTime="15:59:13" StartTime="15:58:13" Id="1"/>
<Count Status="GG" Exits="0" Enters="1" EndTime="15:58:13" StartTime="15:57:13" Id="1"/>
<Count Status="GG" Exits="1" Enters="0" EndTime="15:57:13" StartTime="15:56:13" Id="1"/>
<Count Status="GG" Exits="1" Enters="1" EndTime="15:56:13" StartTime="15:55:13" Id="1"/>
<Count Status="GG" Exits="1" Enters="1" EndTime="15:55:12" StartTime="15:54:12" Id="1"/>
<Count Status="GG" Exits="0" Enters="1" EndTime="15:54:12" StartTime="15:53:12" Id="1"/>
<Count Status="GG" Exits="1" Enters="0" EndTime="15:49:35" StartTime="15:48:35" Id="1"/>
<Count Status="GG" Exits="0" Enters="3" EndTime="15:48:35" StartTime="15:47:35" Id="1"/>
<Count Status="GG" Exits="1" Enters="1" EndTime="15:34:09" StartTime="15:33:09" Id="1"/>
<Count Status="GG" Exits="1" Enters="0" EndTime="15:32:09" StartTime="15:31:09" Id="1"/>
<Count Status="GG" Exits="3" Enters="2" EndTime="15:31:09" StartTime="15:30:09" Id="1"/>
<Count Status="GG" Exits="0" Enters="2" EndTime="15:30:09" StartTime="15:29:09" Id="1"/>
<Count Status="GG" Exits="1" Enters="0" EndTime="15:20:32" StartTime="15:19:32" Id="1"/>
<Count Status="GG" Exits="1" Enters="1" EndTime="15:19:32" StartTime="15:18:32" Id="1"/>
<Count Status="GG" Exits="2" Enters="0" EndTime="15:15:32" StartTime="15:14:32" Id="1"/>
<Count Status="GG" Exits="1" Enters="4" EndTime="15:13:32" StartTime="15:12:32" Id="1"/>
<Count Status="GG" Exits="5" Enters="4" EndTime="14:33:35" StartTime="14:28:35" Id="1"/>
<Count Status="GG" Exits="0" Enters="2" EndTime="14:28:35" StartTime="14:23:35" Id="1"/>
<Count Status="GG" Exits="1" Enters="1" EndTime="14:27:35" StartTime="14:26:35" Id="1"/>
</Report>
</ReportData>
</Metrics>
这个是post了一个XML文件?
可以通过Request接收,然后用request.body去取数据。