Alright. I was trying to see if I could use an HTTP Request to download an exe file and an x86_64 file from GitHub. I've tried many was to succeed in it, but it never prospered. this is an example of what I tried to do.
What this is supposed to do its download the file & put it into the apps directory of my app.
func DownloadTestApp(result, response_code, headers, body):
OS.alert("File Exists", "Error")
var f = File.new()
What this is supposed to do is find what button I pressed in a Menu Button & do what it needs to do to start the download.
var user_path = OS.get_user_data_dir()
var item_name = $DownloadPrograms.get_popup().get_item_text(id)
if item_name == "TestApp":
OS.alert("The software will now continue to download TestApp", "Download")
http_request.connect("request_completed", self, "DownloadTestApp")
Please note that the url that's included isn't real. It's the same thing as my personal url but some names are changed