+Philsan Posted November 14, 2020 Share Posted November 14, 2020 I remember that many years ago I was able to display web pages with Dragoncart and Contiki web browser. Is it possible or would it be possible to to the same with FujiNet? Thanks! Quote Link to comment Share on other sites More sharing options...
tschak909 Posted November 14, 2020 Share Posted November 14, 2020 Yes, it's one of the reasons I am working so hard to get N: working fully, as the FujiNet will be able to do a TON of ESP32-side processing to make writing a web browser on the Atari, MUCH EASIER. (In BASIC even, if so wanted.) -Thom 3 1 Quote Link to comment Share on other sites More sharing options...
mozzwald Posted May 13, 2021 Share Posted May 13, 2021 I've been fiddling around in BASIC making a 'Web LISTer'. Most of the work is done in a php script on a server which grabs a url and reformats it for display on the Atari. It's currently very crappy and just scrolls the entire page without stopping. Links are not supported. Also, the FujiNet does not currently handle chunked http so any large pages wont load. Here is a view of fujinet.online/support: 10 Quote Link to comment Share on other sites More sharing options...
mozzwald Posted May 14, 2021 Share Posted May 14, 2021 I put the Web LISTer up on fujinet.online tnfs at networking/www.atr. Keep in mind it's pretty bad, buggy for sure After booted to Atari BASIC, just: RUN"D1:WWW.ATR" 3 Quote Link to comment Share on other sites More sharing options...
+Philsan Posted May 14, 2021 Author Share Posted May 14, 2021 I always get "That's not a web page" message. Perhaps I am entering wrong URL or URL in wrong format. Quote Link to comment Share on other sites More sharing options...
Atari8guy Posted May 14, 2021 Share Posted May 14, 2021 (edited) Same I even tried hard coding the address into the basic program and verifying the site works with frogfind. Edited May 14, 2021 by 8bitguy1 Quote Link to comment Share on other sites More sharing options...
mozzwald Posted May 15, 2021 Share Posted May 15, 2021 (edited) 7 hours ago, Philsan said: I always get "That's not a web page" message 7 hours ago, 8bitguy1 said: Same URL format should be all lowercase like so: https://fujinet.online or https://en.wikipedia.org/wiki/leg Special characters are not supported in the URL either as there is no urlencode functionality. Large content length pages still do not work due to the inability of chunked transfers problem in FujiNet firmware. Edited May 15, 2021 by mozzwald link 1 1 Quote Link to comment Share on other sites More sharing options...
+Philsan Posted May 15, 2021 Author Share Posted May 15, 2021 I tested the two URLs but nothing happened. SIO light turned on for circa 10 seconds, then READY appeared. Quote Link to comment Share on other sites More sharing options...
mozzwald Posted May 15, 2021 Share Posted May 15, 2021 5 hours ago, Philsan said: I tested the two URLs but nothing happened. SIO light turned on for circa 10 seconds, then READY appeared. Interesting. Sounds like it got chunked. Both of those sites worked for me. You can verify by watching the debug output and the status frame tells if it is chuncked. Quote Link to comment Share on other sites More sharing options...
+x=usr(1536) Posted May 16, 2021 Share Posted May 16, 2021 (edited) Scratch that; spotted the (massive) flaws after posting. Edited May 16, 2021 by x=usr(1536) Quote Link to comment Share on other sites More sharing options...
mozzwald Posted June 3, 2021 Share Posted June 3, 2021 Now that there's some support for chunked http transfers, my silly site scroller should work with long pages. (tnfs or www) https://fujinet.online/tnfs-data/networking/www.atr Currently the script pauses for each screen fill and if you wait too long to press return, the next page will be out of sync or it will keep scrolling the same page forever. I suspect the buffer on fujinet is getting overwritten/out of order because we aren't reading it fast enough. anyhow, it's a good way to test the new chunked support 5 Quote Link to comment Share on other sites More sharing options...
+Philsan Posted June 6, 2021 Author Share Posted June 6, 2021 It works! It would be nice automatic lower case when you enter URL. What's the purpouse of the first INPUT, before URL INPUT? Quote Link to comment Share on other sites More sharing options...
mozzwald Posted June 6, 2021 Share Posted June 6, 2021 6 hours ago, Philsan said: It would be nice automatic lower case when you enter URL. I can add it if someone shows how to do it. Just did a quick search and couldn't find out how. 6 hours ago, Philsan said: What's the purpouse of the first INPUT, before URL INPUT? The autorun seems to add a carriage return when it first loads the script so without the input/pause it would press return with an empty url Quote Link to comment Share on other sites More sharing options...
+Philsan Posted June 6, 2021 Author Share Posted June 6, 2021 Here is a routine that converts a string from upper case to lower case. I adapted a routine that converts a string from lower case to upper case found on the book Atari BASIC Faster and Better. 100 DIM URL$(50) 110 INPUT URL$ 120 GOSUB 1000 130 PRINT URL$ 140 END 1000 FOR X=1 TO LEN(URL$):IF ASC(URL$(X,X))>64 AND ASC(URL$(X,X))<91 THEN GOSUB 1020 1010 NEXT X:RETURN 1020 URL$(X,X)=CHR$(ASC(URL$(X,X))+32):RETURN 1 Quote Link to comment Share on other sites More sharing options...
+David_P Posted June 6, 2021 Share Posted June 6, 2021 I think you can gain a little speed by reducing the number of lookup / ASC calculations: 1000 FOR X=1 TO LEN(URL$):Q=ASC(URL$(X,X)):IF Q>64 AND Q<91 THEN GOSUB 1020 1010 NEXT X:RETURN 1020 URL$(X,X)=CHR$(Q+32):RETURN 1 Quote Link to comment Share on other sites More sharing options...
mozzwald Posted June 6, 2021 Share Posted June 6, 2021 2 hours ago, Philsan said: Here is a routine that converts a string from upper case to lower case. Thanks, that works! 29 minutes ago, David_P said: I think you can gain a little speed by reducing the number of lookup / ASC calculations: Indeed, it seems a little faster. I've added this to the ATR as well as changed the url to fujinet.online/fujifind My changes to the server side stuff if anyone wants to take a stab at making it better: https://github.com/mozzwald/FujiFind 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.