Print

raw请求类型的http健康检测

5小时前 发表

配置步骤

配置请求为域名形式的http健康性检测,由于负载发包默认会以ip形式去访问,因此需要使用raw类型的请求

以针对abc.com/123的get请求为例:

nqa template http test

source ip x.x.x.x

operation raw
raw-request
  GET /123 HTTP/1.1\r\n
  Host: abc.com\r\n
  \r\n
  quit

 

web界面配置,操作类型选择raw,内容如下:

GET /123 HTTP/1.1\r\nHost: abc.com\r\n\r\n

请求的目的url可以不配置,其余expect、probe timeout按需配置