Can I download a map from the Internet? I tried this:
OPEN "UC",#1,"http://www.geomap.nagvis.org/?module=map¢er=21.14,51.404&zoom=16&width=600&height=600",80
receive #1, t$
bsave "mapka.png",varptr(t$),len(t$)
end
but I get
ERROR at line 0: Unknown Error socket
ERROR at line 0: Unknown Error OPEN
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, you can, but RECEIVE ist not the right command for it. In the manual, page 69, there is a little tutorial on how to get a html page via internet. You may also have a look at the example programs in All/Internet/getwww.bas.
Getting the picture data from a map is very similar, but you need to send a command to the server first (usually a GET command) and then analyze the response....
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Strange, when I type xbasic getwww.bas I get the same errors at line 5 :o
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2020-08-30
Hello Kott, same on my PC with Windows 10.
OPEN "UC",#2,"heise.de",80
CLOSE #2
END
' ERROR at line 0: Unknown Error socket
' ERROR at line 0: Unknown Error OPEN
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can I download a map from the Internet? I tried this:
OPEN "UC",#1,"http://www.geomap.nagvis.org/?module=map¢er=21.14,51.404&zoom=16&width=600&height=600",80
receive #1, t$
bsave "mapka.png",varptr(t$),len(t$)
end
but I get
ERROR at line 0: Unknown Error socket
ERROR at line 0: Unknown Error OPEN
Yes, you can, but RECEIVE ist not the right command for it. In the manual, page 69, there is a little tutorial on how to get a html page via internet. You may also have a look at the example programs in All/Internet/getwww.bas.
Getting the picture data from a map is very similar, but you need to send a command to the server first (usually a GET command) and then analyze the response....
Strange, when I type xbasic getwww.bas I get the same errors at line 5 :o
Hello Kott, same on my PC with Windows 10.
OPEN "UC",#2,"heise.de",80
CLOSE #2
END
' ERROR at line 0: Unknown Error socket
' ERROR at line 0: Unknown Error OPEN
It works (at least on linux). Maybe this is an issue for the WINDOWS version. (?) Am I right?