Using the ConnectorRequestURL Built-In Function
The ConnectorRequestURL function enables you to use HTTP or FTP to perform a GET using a query string.
Based on the format of the string you provide, the integration gateway uses the HTTP target connector or FTP target connector to perform the GET.
Response messages are returned in a string.
Using ConnectorRequestURL with HTTP
The following example shows using the ConnectorRequestURL function to perform a GET to obtain a stock quote using HTTP.
&Output = %IntBroker.ConnectorRequestURL("http://finance.yahoo.com/d/quotes.txt/
?symbols=PSFT&format=l1c1d1t1");
Using ConnectorRequestURL with FTP
The syntax of the FTP URL is:
ftp://<user>:<password>@<host>:<port>/<url-path>;type=<typecode>
The following example shows using the ConnectorRequestURL function to perform a GET to obtain a stock quote using FTP.
&Output = %IntBroker.ConnectorRequestURL("ftp://qedmo:qedmo@ftp.globalsoft.com:
200/tmp/hello.xml;type=a");