That doesn't match what you curl command does.
I didn't spot this before, but you have 'body' at the wrong level too. This
means:
headers:
key: abc
data: 123
Content-Type: application/json;charset=UTF-8
body: '{}'
gives four different headers, and no body.
I think I've set it up in blackbox?
http_2xx_estate:
prober: http
timeout: 5s
http:
method: post
headers:
key: abc
data: 123
Content-Type: application/json;charset=UTF-8
body: '{}'
在 2020年5月12日星期二 UTC+8下午6:36:58,Brian Candler写道:
>
> On Tu
On Tuesday, 12 May 2020 11:17:33 UTC+1, 李毅 wrote:
>
> Use curl with parameters to return status code 200, use blackbox to return
> 400, why?
>
What you've done in your curl command is to post JSON containing "key" and
"data". What you've done in blackbox exporter is to post an empty JSON
objec
3 matches
Mail list logo