Skip to content
子悦解说 edited this page Sep 16, 2024 · 4 revisions

NetworkConnector is an early library for downloading files and getting domain TXT records.

Downloading files

Note that NetworkConnector downloads files very rudely: if the server returns a 404-not-found page, it will download the 404 page.

Parse TXT records

NetworkConnector parses records with its own formats: key1=value1; key2=value2; key3=value3.

Functions List

Function Description
DownloadFile(url$, file$) url$ is the URL of the file, file$ is the target file. See Download files.
GetDomainTXT$(url$) url$ is the domain. See Get TXT records.
ParseDomainTXT$(txt$, key$) txt$ is the txt record, key$ is the key. See Parse TXT records.

Changelogs

Version Changes
v1.02 Use DnsQuery for the GetDomainTXT function, instead of nslookup of the console.
v1.01 Tiny optimizations.
Clone this wiki locally