- John Fauss
- PowerBuilder
- Thursday, 22 June 2023 02:12 AM UTC
Using PB 2019 R3 Build 2779
I wish to read the contents of a text file directly from the Internet:
http://data.iana.org/TLD/tlds-alpha-by-domain.txt
This is THE list of top-level-domains (TLD's) maintained by IANA (the Internet Assigned Numbers Authority). The end goal is to populate a DataStore with this list and use the TLD's to validate user-entered email addresses.
While I certainly could view the contents in a web browser, copy/paste into a locally-saved text file for subsequent import into a DataWindow/DataStore and database table, I would prefer the application to read the contents directly without manual intervention. The above URL is not a WebAPI interface. Because this list is a simple text file, there is no HTML or JavaScript to "hook" into via the Chromium-based web browser control, nor does there seem to be "save as" capability in the Chromium-based browser control. Using the newly-released replacement Webview2 browser control is not a viable option at this time.
Any ideas are welcomed. Thanks in advance!
John
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.