• Post Reply Bookmark Topic Watch Topic
  • New Topic

getting inputstream from URL in applet

 
Ruud Steeghs
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In an applet I make a connection to a URL and subsequently want to get an InputStream from this URL to read its contents. This throws a SecurityException.
Why is this? I've gone through some previous postings and read something about applet "only being able to connect to server is was loaded from". Is this the problem?
Cheers,
-Ruud.
 
Tim Holloway
Bartender
Posts: 18469
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep.
 
Nishith Prabhakar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes ... Applets can make network connections to only their host ...
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!