sendReq2 - new InputStreamReader(url.openStream())); String...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import*; import*; public class sendReq2 { public static void main(String[] arg) { try { //String urlname = ""; String urlname = ""; System.out.println(urlname); URL url = new URL(urlname); BufferedReader in = new BufferedReader(
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: new InputStreamReader(url.openStream())); String line; while(true) { line = in.readLine(); if( line == null ) break; System.out.println(line); } in.close(); } catch (MalformedURLException ee) {} catch (IOException ee) {} } }...
View Full Document

This note was uploaded on 07/14/2011 for the course COP 4610L taught by Professor Staff during the Spring '09 term at University of Central Florida.

Ask a homework question - tutors are online