Difference between revisions of "NetworkRequest"
From Lianjapedia
Barrymavin (Talk | contribs) m |
Barrymavin (Talk | contribs) m |
||
Line 73: | Line 73: | ||
|valign="top"|Putdata | |valign="top"|Putdata | ||
|valign="top"|url as Character, data as Character | |valign="top"|url as Character, data as Character | ||
− | |valign="top"| | + | |valign="top"|Sends the specified data to the url using an HTTP PUT request |
|- | |- | ||
|valign="top"|Putfile | |valign="top"|Putfile | ||
|valign="top"|url as Character, filename as Character | |valign="top"|url as Character, filename as Character | ||
− | |valign="top"| | + | |valign="top"|Sends the contents of the file *filename* to the specified url using an HTTP PUT request |
|- | |- | ||
|valign="top"|Reset | |valign="top"|Reset | ||
|valign="top"|None | |valign="top"|None | ||
− | |valign="top"| | + | |valign="top"|Resets the NetworkRequest object |
|- | |- | ||
|valign="top"|Setheader | |valign="top"|Setheader |
Revision as of 04:53, 5 September 2013
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
Properties
This class supports the Common Properties plus the following:
Property | Access (R/RW) | Value | Description |
---|---|---|---|
Async | W | Boolean | Whether operation is performed asynchronously |
ErrorNumber | R | Numeric | Number of last error |
ErrorString | R | Character | Message for last error |
Password | W | Character | Password for remote server |
Username | W | Character | User name for remote server |
Methods
This class supports the Common Methods plus the following:
Method | Args | Description |
---|---|---|
Getdata | url as Character | Returns the requested data as a Character string |
Getfile | url as Character, filename as Character | Fetches the data from the specified url into the local file filename using an HTTP GET |
Isfinished | None | Returns true if asynchronous operation has finished, otherwise false |
Networkaccessible | None | Returns true if valid network connection |
Postdata | url as Character, data as Character | Sends the specified data to the url using an HTTP POST request |
Postfile | url as Character, filename as Character | Sends the contents of the file *filename* to the specified url using an HTTP POST request |
Putdata | url as Character, data as Character | Sends the specified data to the url using an HTTP PUT request |
Putfile | url as Character, filename as Character | Sends the contents of the file *filename* to the specified url using an HTTP PUT request |
Reset | None | Resets the NetworkRequest object |
Setheader | name as Character, value as Character |
Events
This class supports the Common Events plus the following:
Event | Args | Description |
---|