Home | Reviews | GUIpedia | Forum | Fun500
aguma | Connecting to the internetHow 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-02 | 7:19 PM |
Todd | Re:Connecting to the internetIn 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-02 | 7:32 PM |
Brandon | Re:Connecting to the internetuse WGET | 2008-09-02 | 7:53 PM |
ksr | Re:Connecting to the internetGetnet used WinAPI calls, but a better cross-platform method would be to use wget or one of its equivalents. | 2008-09-03 | 2:35 PM |
Brandon | Re:Connecting to the internetCQML 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-03 | 4:49 PM |
BASIC Programming Help
2021 Brandon Cornell