http 503 报文例子
时间: 2023-07-07 13:31:30 浏览: 36
下面是一个 HTTP 503 报文的例子:
```
HTTP/1.1 503 Service Unavailable
Date: Wed, 21 Oct 2015 07:28:00 GMT
Retry-After: 3600
Server: Apache/2.2.22 (Ubuntu)
Content-Length: 0
Connection: close
```
这个报文表示服务器暂时无法处理请求,客户端应该在 Retry-After 头部指定的时间之后重试请求。在这个例子中,Retry-After 头部的值为 3600 秒,即 1 小时。服务器还发送了其他一些头部,如 Date、Server 和 Connection。Content-Length 头部设置为 0,表示响应体为空。
相关问题
HTTP 503 报文例子
下面是一个 HTTP 503 报文的例子:
```
HTTP/1.1 503 Service Unavailable
Date: Wed, 21 Oct 2015 07:28:00 GMT
Retry-After: 3600
Server: Apache/2.2.22 (Ubuntu)
Content-Length: 0
Connection: close
```
这个报文表示服务器暂时无法处理请求,客户端应该在 Retry-After 头部指定的时间之后重试请求。在这个例子中,Retry-After 头部的值为 3600 秒,即 1 小时。服务器还发送了其他一些头部,如 Date、Server 和 Connection。Content-Length 头部设置为 0,表示响应体为空。
OCPP MeterValuesAlignedData报文例子
下面是一个OCPP MeterValuesAlignedData报文的例子:
```
{
"meterValue": [
{
"timestamp": "2018-12-17T03:24:00Z",
"sampledValue": [
{
"value": "11.5",
"measurand": "Energy.Active.Import.Register",
"unit": "kWh",
"context": "Sample.Periodic",
"location": "Outlet",
"format": "Raw",
"phase": "L1"
},
{
"value": "10.2",
"measurand": "Energy.Active.Import.Register",
"unit": "kWh",
"context": "Sample.Periodic",
"location": "Outlet",
"format": "Raw",
"phase": "L2"
},
{
"value": "12.3",
"measurand": "Energy.Active.Import.Register",
"unit": "kWh",
"context": "Sample.Periodic",
"location": "Outlet",
"format": "Raw",
"phase": "L3"
}
]
}
]
}
```
在这个例子中,充电桩上传了一个包含一个meterValue的数据块,该数据块包含了一个timestamp和三个sampledValue。每个sampledValue包含了能量、电流、电压等信息,以及该数据的测量单位、采样上下文、位置、格式和相数等信息。这个报文的结构和数据都符合OCPP MeterValuesAlignedData的规范要求。
相关推荐
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)