Http Functions

The http functions are the easiest to understand. The usage is very straight forward as well. You must enable the http requests in Orbit, in order to use them in your LUA scripts.

Warning

Using http requests, a person with bad intentions can cause you a lot of troubles. A simple "HttpGet" or "HttpPost" function call can leak your IP address, and an "HttpDownload" call can download potential malware onto your system. On top of that, remember, that you have already disabled your antivirus in order to run Orbit. The combination of these things can result in severe security risks. Be cautious and ensure that any LUA scripts you run are from trusted sources. Avoid executing scripts obtained from unfamiliar or unverified origins, as they may contain malicious code designed to exploit vulnerabilities in your system. Always prioritize the safety and integrity of your data.

Usage

HttpGet(string url, string header)
local response = HttpGet("https://www.google.com/", "") --returns a string response Print(response)
HttpPost(string url, string content)
local response = HttpPost("https://www.google.com/", "Hello World!") --returns a string response Print(response)

You can specify a file path in the filename. If no path is specified, it will download the file where Orbit is located. This function does not create a folder automatically, meaning if the file path specified was invalid, it will cause an error.

HttpDownload(string url, string filename)
local url = "https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png" HttpDownload(url, "GoogleLogo.png") --downloads where Orbit.exe is HttpDownload(url, "C:\Users\Username\Documents\GoogleLogo.png") --downloads into documents