Difference between revisions of "NetworkRequest"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
Line 48: | Line 48: | ||
|- | |- | ||
|valign="top"|Getdata | |valign="top"|Getdata | ||
− | |valign="top"| | + | |valign="top"|url as Character |
− | |valign="top"| | + | |valign="top"|Returns the requested data as a Character string |
|- | |- | ||
|valign="top"|Getfile | |valign="top"|Getfile | ||
− | |valign="top"| | + | |valign="top"|url as Character, filename as Character |
|valign="top"| | |valign="top"| | ||
|- | |- | ||
Line 60: | Line 60: | ||
|- | |- | ||
|valign="top"|Networkaccessible | |valign="top"|Networkaccessible | ||
− | |valign="top"| | + | |valign="top"|None |
− | |valign="top"| | + | |valign="top"|Returns true if valid network connection |
|- | |- | ||
|valign="top"|Postdata | |valign="top"|Postdata | ||
− | |valign="top"| | + | |valign="top"|url as Character, data as Character |
|valign="top"| | |valign="top"| | ||
|- | |- | ||
|valign="top"|Postfile | |valign="top"|Postfile | ||
− | |valign="top"| | + | |valign="top"|url as Character, filename as Character |
|valign="top"| | |valign="top"| | ||
|- | |- | ||
|valign="top"|Putdata | |valign="top"|Putdata | ||
− | |valign="top"| | + | |valign="top"|url as Character, data as Character |
|valign="top"| | |valign="top"| | ||
|- | |- | ||
|valign="top"|Putfile | |valign="top"|Putfile | ||
− | |valign="top"| | + | |valign="top"|url as Character, filename as Character |
|valign="top"| | |valign="top"| | ||
|- | |- | ||
Line 84: | Line 84: | ||
|- | |- | ||
|valign="top"|Setheader | |valign="top"|Setheader | ||
− | |valign="top"| | + | |valign="top"|name as Character, value as Character |
|valign="top"| | |valign="top"| | ||
|- | |- |
Revision as of 08:49, 2 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 | |
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 | |
Postfile | url as Character, filename as Character | |
Putdata | url as Character, data as Character | |
Putfile | url as Character, filename as Character | |
Reset | None | |
Setheader | name as Character, value as Character |
Events
This class supports the Common Events plus the following:
Event | Args | Description |
---|