HttpGet (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Emess
No edit summary
>ArceusInator
example
Line 1: Line 1:
{{Locked}}
{{Locked}}
<onlyinclude>{{Method|name = HttpGet
<onlyinclude>{{Method|name = HttpGet
|arguments = [[string]] '''URI'''
|arguments = [[string]] ''URL''
|returns = [[string]] ''request body''
|returns = [[string]] ''request body''
|description = Retrieves HTML of the URI via get variable method.
|description = Retrieves HTML of the URI via get variable method.
|object = DataModel
|object = DataModel
}}</onlyinclude>
}}</onlyinclude>
{{Example|
If using the [[Command Bar]] or a [[CoreScript]]...<pre>
print( game:HttpGet( "http://www.roblox.com/User.aspx?ID=4812582" ) ) --> s HttpGet</pre>
If using a [[Script]] or a [[LocalScript]]...<pre>
print( game:HttpGet( "http://www.roblox.com/User.aspx?ID=4812582" ) ) --> s HttpGet</pre>}}
[[Category:Methods]]
[[Category:Methods]]

Revision as of 04:10, 30 December 2010

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









Example
If using the Command Bar or a CoreScript...
print( game:HttpGet( "http://www.roblox.com/User.aspx?ID=4812582" ) ) --> s HttpGet
If using a Script or a LocalScript...
print( game:HttpGet( "http://www.roblox.com/User.aspx?ID=4812582" ) ) --> s HttpGet