Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

downloadWebpage() problem  RSS feed

 
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).
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!