HttpGet (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>LocalChum
No edit summary
Fix minor code syntax error - missing double parentheses
 
(One intermediate revision by one other user not shown)
Line 14: Line 14:
  -- Correct security context will allow you to get variables from an HTML document.
  -- Correct security context will allow you to get variables from an HTML document.
   
   
  print(game:HttpGet("<nowiki>ht</nowiki>tp://somesite/", true); -->  However, in Roblox, only external  code is allowed to call this, so you will get an error saying "s HttpGet"
  print(game:HttpGet("<nowiki>ht</nowiki>tp://somesite/", true)); -->  However, in Roblox, only external  code is allowed to call this, so you will get an error saying "s HttpGet"
}}
}}


[[Category:Methods]]
[[Category:Methods]]

Latest revision as of 02:31, 19 February 2023

Protected:This item is protected. Attempting to use it in a Script or LocalScript will cause an error.
HttpGet( string URI[, bool synchronous] )
Returns string request body
Description: Retrieves HTML of the URI via get variable method.
Member of: DataModel


Example
-- Correct security context will allow you to get variables from an HTML document.

print(game:HttpGet("http://somesite/", true)); -->  However, in Roblox, only external  code is allowed to call this, so you will get an error saying "s HttpGet"