Re: HTML into a NetREXX pgm

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: HTML into a NetREXX pgm

Robert L Hamilton
I found it:

arg = 'http://www.robertlhamilton.com/vostok_R3.html'
pagereader=BufferedReader(InputStreamReader(InputStream URL(arg).getcontent ))
loop for 7                               --forever
   line=pagereader.readLine
   if line = null then exit 0
   say line
   end


works great;  Just what the problem needed.  The Dean said, "Maybe we better look into it."  'it'  being NetRexx

thanks for the time and enjoy the day.

Bob H

On Sat, Nov 20, 2010 at 10:26 AM, David Requena <[hidden email]> wrote:
Bob,

I think it was Kermit Kisser who posted that code in his "Beginner's Guide to NetRexx" thread. as a reply to Fernando Cassia's request.


Should be around the middle I guess.


2010/11/20 Robert Hamilton <[hidden email]>

Someone posted a NetRexx routine to 'read' the html from a web server.  Was it you?  I need to find a copy of the code; it seemed very simple.

thanks for your time and enjoy the day

Bob Hamilton



--
Saludos / Regards,
David Requena



_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: HTML into a NetREXX pgm

Robert L Hamilton
One question: What closes the connection?

On Sat, Nov 20, 2010 at 2:41 PM, Robert Hamilton <[hidden email]> wrote:
I found it:

arg = 'http://www.robertlhamilton.com/vostok_R3.html'
pagereader=BufferedReader(InputStreamReader(InputStream URL(arg).getcontent ))
loop for 7                               --forever
   line=pagereader.readLine
   if line = null then exit 0
   say line
   end


works great;  Just what the problem needed.  The Dean said, "Maybe we better look into it."  'it'  being NetRexx

thanks for the time and enjoy the day.

Bob H


On Sat, Nov 20, 2010 at 10:26 AM, David Requena <[hidden email]> wrote:
Bob,

I think it was Kermit Kisser who posted that code in his "Beginner's Guide to NetRexx" thread. as a reply to Fernando Cassia's request.


Should be around the middle I guess.


2010/11/20 Robert Hamilton <[hidden email]>

Someone posted a NetRexx routine to 'read' the html from a web server.  Was it you?  I need to find a copy of the code; it seemed very simple.

thanks for your time and enjoy the day

Bob Hamilton



--
Saludos / Regards,
David Requena




_______________________________________________
Ibm-netrexx mailing list
[hidden email]