Hi Tony! > How can I set up commons-vfs (specifically HTTP) to use a proxy AND > authenticate to the site (which is password protected)? > You can add the password to the url e.g. http://user:[EMAIL PROTECTED]/file.txt or configure a user authenticator as shown below:
FileSystemOptions opts = new FileSystemOptions(); HttpFileSystemConfigBuilder.getInstance().setProxyHost(opts, "proxy.host.net"); HttpFileSystemConfigBuilder.getInstance().setProxyPort(opts, 8080); DefaultFileSystemConfigBuilder.getInstance().setUserAuthenticator(opts, you_user_authenticator); FileObject fo = VFS.getManager().resolveFile("http://target.host.net/file.txt", opts); I dont know if and how the user/pass stuff works with your proxy, please tell us your experiences afterwards. Ciao, Mario --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]