|
Post by metro on Jun 6, 2020 20:14:42 GMT -5
result$ = httpget$("https://www.sqlite.org/tclsqlite.html#backup") PRINT result$
EDIT httpget$ is case sensitive in lb5x32-351 HTTPGET$ throws an error on my system
|
|
|
Post by Carl Gundel on Jun 6, 2020 20:22:57 GMT -5
Ooops. I thought I fixed that.
|
|
|
Post by Carl Gundel on Jun 6, 2020 20:35:59 GMT -5
Well, the testhttpget.bas example does work with https so that's a bit of a puzzle.
UPDATE: It does work on Windows and Mac but not Linux so I need to figure that out.
|
|
|
Post by metro on Jun 6, 2020 20:48:32 GMT -5
Well, the testhttpget.bas example does work with https so that's a bit of a puzzle. UPDATE: It does work on Windows and Mac but not Linux so I need to figure that out. Maybe we need to wait and see if another linux user has the same issue, I tried the windows version (in WINE) and get the same error so is it my machine/system?
Same issue lb5x64(linux)
|
|
|
Post by Chris Iverson on Jun 6, 2020 22:10:29 GMT -5
I see the issue as well on a Ubuntu 20.04 LTS VM.
|
|
|
Post by pierre on Jun 10, 2020 7:15:33 GMT -5
result$ = httpget$("https://www.sqlite.org/tclsqlite.html#backup") PRINT result$
EDIT httpget$ is case sensitive in lb5x32-351 HTTPGET$ throws an error on my system
httpget$ works with https (Windows 10 Home edition); it is the paragraph indicator '#backup' that causes the error. this works for me:
result$ = httpget$("https://www.sqlite.org/tclsqlite.html") PRINT result$
I get the whole tclsqlite page.
pierre
|
|
|
Post by metro on Jun 10, 2020 8:14:28 GMT -5
result$ = httpget$("https://www.sqlite.org/tclsqlite.html#backup") PRINT result$
EDIT httpget$ is case sensitive in lb5x32-351 HTTPGET$ throws an error on my system
httpget$ works with https (Windows 10 Home edition); it is the paragraph indicator '#backup' that causes the error. this works for me:
result$ = httpget$("https://www.sqlite.org/tclsqlite.html") PRINT result$
I get the whole tclsqlite page.
pierre
Thanks pierre, sadly though Linux version is not working , my first post looks like I cut and past the wrong lines still not working even with the offending part removed
|
|
|
Post by metro on Jun 25, 2020 9:03:42 GMT -5
Ooops. I thought I fixed that maybe in 352
|
|
|
Post by donnybowers on Jun 26, 2020 0:53:37 GMT -5
Well, the testhttpget.bas example does work with https so that's a bit of a puzzle. UPDATE: It does work on Windows and Mac but not Linux so I need to figure that out. Maybe we need to wait and see if another linux user has the same issue, I tried the windows version (in WINE) and get the same error so is it my machine/system? Same issue lb5x64(linux)
LB5 works in Wine? I guess I never thought of trying it because I usually use Windows XP compatibility mode. Plus why would I want to use the Windows version anyway unless I had a program I wanted to publish cross platform. As long as it works in Linux I'm a happy camper. LOL Perhaps the problem has to do with something in Linux that doesn't work in Wine's compatibility layer. I've given up on https: in LB5 for now. I can download https: pages easily with PHP, so I'm covered until it's fixed in LB5. Of course I'd actually rather do it in LB 5 because I often end up processing data from the pages I download using LB anyway. I'm not all that proficient in PHP. I like the ease of BASIC for parsing and processing ASCII files. I'm anxious to start using LB5 for this. It seems to me I even had trouble downloading pages from https: secured sites using LB4.5.1 in a virtual XP machine. I wonder if Linux has it's own, perhaps very different, protocols for reading http pages? I tried the following and it didn't do anything: run "/usr/bin/wget www.everydaylinuxuser.com"
It works on the commmand line, but not using the RUN command. But I also tried the following and it didn't work either: run "ls >ls.txt"
It's a shame because there are so many things that can be done using simple commands like this. Probably a million or more things just by being able to shell to the command line. What's funny is that I just tried these commands using Just BASIC v1.01 in Wine and the wget command works great, but the ls command doesn't. I'm assuming it will only work with a program and not with a command like "ls" or "cd". This could easily be worked around though by creating a simple bash.sh "program" (similar to a DOS batch file only more powerful) that would take your file name (ls.txt) and pass it to the "ls" command and pipe it to the file. I'm assuming that the RUN command is probably not completed yet in LB5 alpha 351. When it is, Linux users will have immense power to do many things simply by shelling to the command line. In fact you already have much of that power if you use LB through the Wine compatibility layer. I once made a program that called up the VLC media player and played a list of videos for me. The possibilities really are endless. Of course you have some of these same capabilities with Windows, but Linux comes stock with so many cool commands it's amazing. In fact I'm going to start playing around with some Linux file converters using LB4.5.1 right now.
|
|
|
Post by meerkat on Jun 26, 2020 4:08:18 GMT -5
Just curious? I'm a real novice with it comes to LINUX. I currently use Ubuntu and windows. Is bash better that HTML5?
I run a server, so I need stuff to work as client/server. The client can be on any OS with a browser. For years I've done movies, conversion like pdf's, voice in and out, directory and others using HTML5.
Should I be looking at bash? I don't see how it works on the client side if I use linux and the client may be using Android, Windows, Fuchsia, IOS, or something else.
Thanks for the Info..
|
|
|
Post by Chris Iverson on Jun 26, 2020 12:59:49 GMT -5
Bash is the most common terminal shell and command-line scripting language/environment for Linux. It's the Linux version of the command line/cmd.exe.
It'd essentially be pointless if you're trying to do GUI interfaces, which is what HTML5 is geared towards.
|
|