HI

Iam URL class to extract webpage .

URL url = new URL(link);// for ex link="www.yahoo.com" like that

Pgm is wrking fine.But while running it throws java.net.SocketException: Connection reset
at this line while ((read = in1.read(buf)) != -1) {}

Plz help me to solve this problem

Post all the relevant code ( code=java tags) please.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.