So I created a function to fetch the body of a URL, but it doesn’t want to work.
Here’s the code:
function gethtmldata(url) returndata = "none" http.Fetch( url, function( body, len, headers, code ) returndata = body end, function( ERR ) returndata = ERR end ); return returndata end
I’ve googled around and can’t find anything, it always returns “none”(what I set it to return originally) but there are no errors. This is being run clientside.