chaos-mesh / chaosd

A Chaos Engineering toolkit.
Apache License 2.0
132 stars 63 forks source link

Chaosd run as a server, how to set http request header #249

Open dbaicss opened 11 months ago

dbaicss commented 11 months ago
  1. chaosd server -p 9288
  2. chaosd attack jvm exception --class main --method hello* --exception 'java.io.IOException("BOOM")' --pid 3699 after excute 1,2 cmd, the log follow [2023/10/12 16:23:37.447 +08:00] [INFO] [jvm.go:90] ["submit rules"] [output="HTTP/1.1 400 Bad Request\nContent-Type: text/plain; charset=utf-8\nConnection: close\n\n400 Bad Request\n\n"]

how to set chaosd http request header, solve the promblem, thxs!