Menu

Downloading from the Internet

Kott
2017-03-11
2021-02-18
  • Kott

    Kott - 2017-03-11

    Can I download a map from the Internet? I tried this:

    OPEN "UC",#1,"http://www.geomap.nagvis.org/?module=map&center=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

     
  • Markus Hoffmann

    Markus Hoffmann - 2017-03-13

    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....

     
  • Kott

    Kott - 2017-04-24

    Strange, when I type xbasic getwww.bas I get the same errors at line 5 :o

     
  • 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

     
  • Markus Hoffmann

    Markus Hoffmann - 2021-02-18

    It works (at least on linux). Maybe this is an issue for the WINDOWS version. (?) Am I right?

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.