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 
object {}, and to add HTTP headers "key" and "data".

Try the curl command which does the same:

curl -iv -H "Content-Type:application/json;charset=UTF-8" -H "key:abc" -H 
"data:123" -X POST -d '{}' https://xx.com/xxl/get/xxx 



-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/4f011fb7-5e6a-4d33-81eb-4a67e652218a%40googlegroups.com.

Reply via email to