HttpPost (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>ArceusInator Turned "URI" into "URL" |
>Camoy No edit summary |
||
Line 1: | Line 1: | ||
{{Locked}} | {{Locked}} | ||
<onlyinclude>{{Method|name = HttpPost | <onlyinclude>{{Method | ||
|arguments = [[string]] '' | |name = HttpPost | ||
|arguments = [[string]] ''URI'' | |||
|returns = [[string]] ''request body'' | |returns = [[string]] ''request body'' | ||
|description = Sends data over a URI via HTML post method. | |description = Sends data over a URI via HTML post method. | ||
|object = DataModel | |object = DataModel | ||
}}</onlyinclude> | }}</onlyinclude> | ||
{{clear floats}} | |||
{{Example| | |||
If using the [[Command Bar]] or a [[CoreScript]]...<pre> | |||
print( game:HttpPost( "http://www.roblox.com/User.aspx?ID=4812582" ) ) --> s HttpGet</pre> | |||
If using a [[Script]] or a [[LocalScript]]...<pre> | |||
print( game:HttpPost( "http://www.roblox.com/User.aspx?ID=4812582" ) ) --> s HttpGet | |||
</pre>}} | |||
[[Category:Methods]] | [[Category:Methods]] |
Revision as of 14:13, 31 December 2010
Protected:This item is protected. Attempting to use it in a Script or LocalScript will cause an error.
![]() | |
Returns | string request body |
Description: | Sends data over a URI via HTML post method. |
Member of: | DataModel |
Example
If using the Command Bar or a CoreScript...print( game:HttpPost( "http://www.roblox.com/User.aspx?ID=4812582" ) ) --> s HttpGetIf using a Script or a LocalScript...
print( game:HttpPost( "http://www.roblox.com/User.aspx?ID=4812582" ) ) --> s HttpGet