InternetOpenURL
- opens Internet web resource (URL)

File Input/Output functions
(AmiBroker 6.20)


SYNTAX InternetOpenURL(''http://url_to_your_web_resource'')
RETURNS HANDLE
FUNCTION The function opens specified URL and returns a special file handle to be used by InternetReadString/InternetClose functions. It allows to open any web page or REST API service.
EXAMPLE ih = InternetOpenURL( "https://www.quandl.com/api/v3/datasets/SEC/AAPL_SALESREVENUENET_Q.csv?api_key=" );
printf( "AAPL Revenue: " );
if( ih )
{
     while( ( str = InternetReadString( ih ) ) != "" )
     {
         printf( "%s", str );
     }
     InternetClose( ih );
}
SEE ALSO InternetClose() function

References:

The InternetOpenURL function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.