In order to install & use it on Blogger, follow the below simple steps:
1) Go to your Template Layout->Download your template as a backup first
1) Go to your Template Layout->Download your template as a backup first
import java.net.Authenticator; class ProxyAuthenticator extends Authenticator { private String user, password; public ProxyAuthenticator(String user, String password) { this.user = user; this.password = password; } protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(user, password.toCharArray()); } }and put these lines of code before your code opens an URLConnection-
Authenticator.setDefault(new ProxyAuthenticator("user_iiitm", "password123")); System.setProperty("http.proxyHost", "proxy host"); System.setProperty("http.proxyPort", "port");