Component: HTTP Fetch ( Comms)
Author | MatrixTSL |
Version | 0.1 |
Category | Comms |
Contents
HTTP Fetch component
Component designed to request resources from an external HTTP server.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_WEBEXP_Fetch.fcsx
Please click here to view the component source code (Beta): FC_Comp_Source_WEBEXP_Fetch.fcsx
Detailed description
No detailed description exists yet for this component
Examples
HTTP
Example program showing how to retreive the HTML source of a HTTP URL.
The HTML source is hosted at the following URL: http://www.flowcode.co.uk/example/fetchtest.txt
HTTP JSON Encoded
Example program showing how to retreive the HTML source of a HTTP URL. Here the source is encoded JSON data which we can parse through.
The HTML source is hosted at the following URL: http://www.flowcode.co.uk/example/jsonfetchtest.txt
HTTP JSON Encoded Time and Date
Example program showing how to retreive the HTML source of a HTTP URL. Here the source is encoded JSON data which we can parse through. The data is created using a PHP script which allows for dynamic data such as the current time and date.
The HTML source is hosted at the following URL: http://www.flowcode.co.uk/example/jsonfetchtimedate.php
Please note the file type for the file below has been changed from .php to .txt to be allowed onto the Wiki.
Fetch Parameters
Example program showing how to retreive the JSON data source of a HTTP URL. Here the source is encoded JSON data which we can parse through. The data is created using a PHP script which allows for dynamic data in this case based on the selection made using the radio buttons.
The HTML source is hosted at the following URL: http://www.flowcode.co.uk/example/get_data.php
Please note the file type for the file below has been changed from .php to .txt to be allowed onto the Wiki.
Weather Example
Example program showcasing a number of components used together to collect data from a URL using fetch, before processing the data using the object helper and array helper components.
Macro reference
Fetch
Fetch | |
Start the process of fetching a resource from a web server | |
- STRING | sParams |
Parameters for the Fetch call | |
- VOID | Return |
SetDataType
SetDataType | |
Override the DataType property | |
- LONG | Type |
0=JSON Encoded. 1=Raw Text | |
- VOID | Return |
SetMacro
SetMacro | |
- STRING | sMacro |
- VOID | Return |
SetURL
SetURL | |
Sets the URL for the Fetch call | |
- STRING | sURL |
- VOID | Return |
Property reference
Properties | |
URL | |
Call macro | |
DataType | |
Decide what type of data to receive |