Try "System.out.println ( line);"

-mark

-----Original Message-----
From: Stephen Fenelon [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 19, 2000 6:13 AM
To: [EMAIL PROTECTED]
Subject: get method url problem


Hi I am trying to retrive a url and println it. I am using the code below
which dosen't seem to work. Can anyone point me to a example that does a
"get" on a url or a work around??

thanks
Stephen

URL url = new URL("http://www.blah_blah.com/index.html");

BufferedReader bin = new BufferedReader (
                new InputStreamReader( url.openStream() ));

                        String line;

                                while ( (line = bin.readLine()) !=null )

                                        out.println( line );


___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to