• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

downloadWebpage() problem

 
Michael Tan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im trying to build a custom webpage + RSS reader from scratch.

the method shown below works for the most part. but it will always get this Exception "java.net.SocketException: Unexpected end of file from server" whenever a RSS is from "www.nyaatorrents.org".

but, when i open a RSS using RssReader, it works. so, what am i missing here?

 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It may not explain this problem, but note that the code has a lingering bug waiting to happen: Don't println to a Socket (or, in this case, readLine).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic