Travis Griggs
03/27/2024, 11:45 PMHttpClient(CIO).get {
url {
protocol = URLProtocol.HTTPS
host = MQTTDefaultBroker.hostname
basicAuth(username, password)
path("binaries/$subdir/twigmc-core.deb.container")
}
}
After a successful fetch, I grab the url, and pass it to an IoT device to use as a fast fetch path if it can. Unfortunately, the basicAuth is in a header. Is there a way to get it in the url itself? (e.g. https://username:password@domain/binaries/twigmc/t[…]ore.deb.container)Aleksei Tirman [JB]
03/28/2024, 6:09 AMuser
and the password
properties instead of the basicAuth
method:
HttpClient(CIO).get {
url {
user = "username"
password = "password"
// ...
}
}
Travis Griggs
03/28/2024, 5:37 PMAleksei Tirman [JB]
03/28/2024, 6:22 PMTravis Griggs
03/28/2024, 9:17 PMcurl <https://7da0c415af5c3ae96f01ffe9bd449c0:069258996ba84861b8f372ef0e32b2b36@abc.xyz.com/binaries/product/firmware.file> --output foo
Travis Griggs
03/28/2024, 9:18 PMAleksei Tirman [JB]
03/28/2024, 9:21 PMTravis Griggs
03/28/2024, 9:43 PMTravis Griggs
03/28/2024, 9:43 PMAleksei Tirman [JB]
03/29/2024, 8:48 AM