What is the problem you are trying to solve?
Add support to send requests to different target URLs. This could be done by adding support to set the target host on the request that is going to be sent.
How are you currently being hindered by this problem?
So given the following bchecks code:
metadata:
language: v2-beta
name: "cool name here"
description: "cool description"
author: "pedro"
tags: "cooltag"
given path then
send request called check:
method: "POST"
path: "/my_awesome_endpoint"
replacing headers:
"Host": "myawesomehost",
"Content-Type": "application/x-www-form-urlencoded"
replacing body:
`data={base64_encode({base.response.body})}`
if {check.response.status_code} is "200" then
report issue and continue:
severity: high
confidence: tentative
detail: "bla bla detail"
remediation: "delete"
end if
So even though I am setting the Host header, the request is still being sent to the original hostname, having my custom Host header being set. It would be great if we could send requests to different hosts, to be able to develop more complex bchecks templates.
Thank you!
What is the problem you are trying to solve?
Add support to send requests to different target URLs. This could be done by adding support to set the target host on the request that is going to be sent.
How are you currently being hindered by this problem?
So given the following bchecks code:
So even though I am setting the
Hostheader, the request is still being sent to the original hostname, having my custom Host header being set. It would be great if we could send requests to different hosts, to be able to develop more complex bchecks templates.Thank you!