This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading a HTML file by a buffered reader

 
Florin Florentin
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello. I'm trying to read a HTML file in a BufferedReader, but when i'm printing the content that i read, i'm getting some different lines that are not in the web browser when i click view source on the page. Also some lines are missing. Does anyone know what's about?
 
Rob Spoor
Sheriff
Pie
Posts: 20512
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you reading the HTML file? Is it a static HTML page or perhaps a JSP, PHP or ASP page?
 
Joe Ess
Bartender
Pie
Posts: 9266
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many applications and libraries use the User Agent as identified in a request to customize the content returned for a particular browser. Depending on exactly what's different between your browser and application, that may explain what you are seeing.
 
Florin Florentin
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. The problem where that i was trying to read a page that needed login
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic