• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Text file with URL Object

 
Eric Barnhill
Rancher
Posts: 233
Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My applet needs to read some information kept in a text file on the server. I was hoping I could get to it saying something like:
URL url = new URL(getDocumentBase(), file.txt);
and then open the Stream, but I get the same 500 error I would get if I just typed the URL into my browser.
What's the best way to reach the text file on my server?
Thanks
Eric
 
Pawel Veselov
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
500 means internal server error. Hmm, what's the URL you're trying to use, then ?
 
Eric Barnhill
Rancher
Posts: 233
Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Pawel,
the exact URL (I see no reason I can't post it) is:
http://lawmbg.com/cgi-bin/comments/commentfile.txt
this is a text file I want to read from an applet. Any ideas?
Thanks a lot,
Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic