On Fri, 2008-08-22 at 11:22 -0700, Randall Scarberry wrote: > --- On Thu, 8/21/08, Oleg Kalnichevski <[EMAIL PROTECTED]> wrote: > > Randy, > > > > Please note the exception is thrown when opening a socket > > to > > 127.0.0.1:8081 and NOT when executing HTTP GET. You need to > > configure > > SocketPermissions for your applet accordingly. > > > > Oleg > > > > Thanks for the quick response, Oleg. > > Modifying the java policy file isn't an option for us. For now, when > HttpClient fails to work, we have our code fall back and use good ol' > URLConnections, since they just work through proxies without changing the > policy file or signing the applet. > > Randy S. >
Randy I know next to nothing about applets. Probably HttpClient jar is not trusted by the default security policy. Oleg > New code: > > String urlSpec = > "http://servername/mediawiki/index.php?title=somewikipage"; > > URL url = new URL(urlSpec + "&action=edit"); > URLConnection conn = url.openConnection(); > > // Call method in local utility class to set the cookies. > HttpUtilities.setCookies(conn, mCookiePairs); > > // Don't have to get the proxy info -- the URLConnection already has it. > > conn.connect(); > > BufferedReader br = new BufferedReader(new > InputStreamReader(conn.getInputStream(), "UTF-8")); > > // Read the response ... > ... > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
