Home | Reviews | GUIpedia | Forum | Fun500


agumaConnecting to the internet
How on earth do you connect to the internet in FreeBASIC? By that I mean how do you get all the HTML code from a website (i.e. theguiblog.com)? Thanks, because I have NO CLUE! :P
2008-09-027:19 PM

ToddRe:Connecting to the internet
In regular TCP/IP requests, you can send an HTTP request to the website's server in lines: [code] GET /index.php?option=com_kunena&Itemid=26&func=view&catid=2&id=2120 HTTP/1.1 Host: theguiblog.com [/code] If it works, it should return code "200" or "OK" and the data for the web page.
2008-09-027:32 PM

BrandonRe:Connecting to the internet
use WGET
2008-09-027:53 PM

ksrRe:Connecting to the internet
Getnet used WinAPI calls, but a better cross-platform method would be to use wget or one of its equivalents.
2008-09-032:35 PM

BrandonRe:Connecting to the internet
CQML uses WGET and has a Windows and Linux version and a Dos version would be as easy as running "fbc cqml.bas" in dos.
2008-09-034:49 PM

BASIC Programming Help


2021 Brandon Cornell