22.05.2013 - To login a website, you need to know following values : Alternatively, you can view the HTML source code. Elements; public class HttpUrlConnectionExample { private List.