You can look at the QB64 wiki download program I have here, as an example, if you’re just transfering over http and not https:
https://www.qb64.org/forum/index.php?topic=756.msg6455#msg6455Basically, use _OPENCLIENT and GET to do the work:
SUB DownloadRSS (url$, file$, timelimit)
link$ = url$
DIM l AS _INTEGER64, lod AS _INTEGER64
url2$ = RTRIM$(LTRIM$(link$))
url4$ = RTRIM$(LTRIM$(link$))
IF LEFT$(UCASE$(url2$), 7) = "HTTP://" THEN url4$ = MID$(url2$, 8)
x = INSTR(url4$, "/")
IF x THEN url2$ = LEFT$(url4$, x - 1)
NewsClient = _OPENCLIENT("TCP/IP:80:" + url2$)
IF NewsClient = 0 THEN EXIT FUNCTION
e$ = CHR$(13) + CHR$(10) ' end of line characters
url3$ = RIGHT$(url4$, LEN(url4$) - x + 1)
x$ = "GET " + url3$ + " HTTP/1.1" + e$
x$ = x$ + "Host: " + url2$ + e$ + e$
PUT #NewsClient, , x$
OPEN file$ FOR OUTPUT AS #1: CLOSE #1
OPEN file$ FOR BINARY AS #1
t! = TIMER ' start time
head$ = ""
cont_type$ = ""
DO
_LIMIT 20
GET #NewsClient, , a$
IF LTRIM$(a$) > "" THEN PUT #1, , a$
LOOP UNTIL TIMER > t! + timelimit AND timelimit > 0 ' (in seconds)
CLOSE #NewsClient
CLOSE #1
END SUB