Jump to content
IGNORED

Web browser


Philsan

Recommended Posts

  • 5 months later...

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:

IMG_20210512_211108520_1.thumb.jpg.97ff58379256ec8c512e97afb5d010e0.jpg

  • Like 10
Link to comment
Share on other sites

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 by mozzwald
link
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 3 weeks later...

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 ;)

  • Like 5
Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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

 

  • Like 1
Link to comment
Share on other sites

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

  • Thanks 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...