HTTPObject Class Reference
[Platform]
Allows communications between the game and a server using HTTP protocols.
More...
List of all members.
Public Member Functions |
void | get (string Address, string requirstURI, string query="") |
| Send a GET command to a server to send or retrieve data.
|
void | post (string Address, string requirstURI, string query, string post) |
| Send POST command to a server to send or retrieve data.
|
Detailed Description
Allows communications between the game and a server using HTTP protocols.
- Example:
-
Member Function Documentation
void HTTPObject::get |
( |
string |
Address, |
|
|
string |
requirstURI, |
|
|
string |
query = "" | |
|
) |
| | |
Send a GET command to a server to send or retrieve data.
- Parameters:
-
| Address | HTTP web address to send this get call to. Be sure to include the port at the end (IE: "www.garagegames.com:80"). |
| requirstURI | Specific location on the server to access (IE: "index.php".) |
| query | Optional. Actual data to transmit to the server. Can be anything required providing it sticks with limitations of the HTTP protocol. |
- Example:
%httpObj = new HTTPObject();
%url = "www.garagegames.com";
%URI = "/index.php";
%query = "";
%httpObj.get(%url,%URI,%query);
void HTTPObject::post |
( |
string |
Address, |
|
|
string |
requirstURI, |
|
|
string |
query, |
|
|
string |
post | |
|
) |
| | |
Send POST command to a server to send or retrieve data.
- Parameters:
-
| Address | HTTP web address to send this get call to. Be sure to include the port at the end (IE: "www.garagegames.com:80"). |
| requirstURI | Specific location on the server to access (IE: "index.php".) |
| query | Actual data to transmit to the server. Can be anything required providing it sticks with limitations of the HTTP protocol. |
| post | Submission data to be processed. |
- Example:
%httpObj = new HTTPObject();
%url = "www.garagegames.com";
%URI = "/index.php";
%query = "";
%post = "";
%httpObj.POST(%url,%URI,%query,%post);