问题
I have written simple java code to access url www.nseindia.com In my local and on Google appengine ,it throws exception With below message Access Denied You don't have permission to access "http://www.nseindia.com/" on this server. Reference #18.9420b07b.1335496818.23b178f Access Denied You don't have permission to access "http://www.nseindia.com/" on this server. Reference #18.9420b07b.1335496818.23b178f
I am using App Engine SDK 1.5,JRE 1.6 Please advise
回答1:
this is because GAE doesnt allow some classes like file io or networking, check out this guide to achieve what you are looking for.
URL fetch
and this is the list of allowed classes class whitelist
来源:https://stackoverflow.com/questions/10344611/not-able-to-access-http-url-using-java-in-app-engine