I use the addon web/gethttp to get a page off the net. Unless you have peculiar needs (like login first), this is the ready-made solution.
You can get the page as the result of the gethttp verb or have it put in a file. ~ Gilles ---------- Original Message ----------- From: Joe Bogner <[email protected]> To: [email protected] Sent: Wed, 23 Jul 2014 08:35:31 -0400 Subject: Re: [Jprogramming] sockets and memr > Works fine for me on j64 j6 > > JVERSION > Installer: j602a_win64.exe > Engine: j602/2008-03-03/16:45 > Library: 6.02.023 > > You may want to try this in a new session: > > load 'socket' > coinsert 'jsocket' > ]jsoft=: sdcheck sdgethostbyname 'www.jsoftware.com' NB. find host > > On Tue, Jul 22, 2014 at 11:07 PM, Joe Bogner <[email protected]> wrote: > > > Have you tried a newer version of J to troubleshoot? > > > > I confirmed it is working correctly on android J8. Not at my computer to > > try other versions > > On Jul 22, 2014 10:51 PM, "'Dan Baronet' via Programming" < > > [email protected]> wrote: > > > >> I am trying to use code to read pages off the Net and I am getting a > >> domain error with memr. > >> I tried the lab in J to see what I was doing wrong and it fails there too: > >> > >> ── (4 of 11) Web Server (ctd) ─────────────────────────────── > >> Next, we will find the address of our web server, and connect > >> our socket to port 80 on that host: > >> ) > >> ]jsoft=: sdcheck sdgethostbyname 'www.jsoftware.com' NB. find host > >> |domain error: memr > >> | first_addr=. memr addr_list,0,1,JPTR > >> > >> it was working fine a few months ago. Donno what happened. I am running > >> W7, 64b. > >> It fails in j602a_win64.exe, lib 6.02.023 and an older version from 2006. > >> any idea? > >> ---------------------------------------------------------------------- > >> For information about J forums see http://www.jsoftware.com/forums.htm > > > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ------- End of Original Message ------- ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
