Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Custom Web Browser

Author
Message
Dimension
22
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 3rd Jul 2014 08:25
Is it possible to make a custom web browser? I think I would need the ability to enter a http address and from the address get the files from that address (such as the index file and other files)?
Dimension
22
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 3rd Jul 2014 12:06
I tried...



But it says the admin must add the domain to the whitelist.
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 3rd Jul 2014 19:05 Edited at: 3rd Jul 2014 19:05
This seems to work for retrieving the raw content of a viewable webpage (ie. whatever is sent to the client).
The example page is in plain text but it should work with html, css and javascript too (as well as binary files).

As for parsing the HTML, that's up to you



Requires the Matrix1Utilities plugins by the way, but that is mostly for convenience; you could rewrite it using memblocks instead (which would however likely be slower).


"Why do programmers get Halloween and Christmas mixed up?"
Dimension
22
Years of Service
User Offline
Joined: 23rd Nov 2003
Location:
Posted: 4th Jul 2014 05:52
That seems to work pretty well. I assume the best way to pull the web page code up is to guess the actual main page (usually index.html) and get the rest of the files through that HTML code. It worked using http://www.nzxt.com/index.html. For doing a web search that sounds like it will be tricky?
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 4th Jul 2014 14:47
You can just enter a domain name, ie. "http://www.thegamecreators.com" as the url; the server will translate that request and output the designated index page.


"Why do programmers get Halloween and Christmas mixed up?"

Login to post a reply

Server time is: 2026-07-06 00:08:34
Your offset time is: 2026-07-06 00:08:34