I'm simply trying to send a string using the internet card's .request() function to a web server (Asp.NET core 6) hosted locally on my machine.
local computer = require("computer")
local component = require("component")
local serialization = require("serialization")
local internet = require("internet")
local event = require("event")
local reactor = component.nc_fission_reactor
...
function sendEnergy()
data = reactor.getEnergyStored()
local header = {}
header["content-type"] = "application/json"
internet.request("https://localhost:7173/api/energy/sendEnergy", tostring(data), header)