I have one URL lets say (www.example.com). When I hit this URL using below code it will be opened in system default browser.In the browser it will ask user to enter username and password . Then he has to enter username and password. If they are correct again the page will be redirected to (www.example.com).Now i have to get header value "isSuccess" form the browser.If it is normal web application i can achieve it using "request.getHeader("isSuccess")
". But How can I achieve the same in Swing Application?
//Swing code to open URL in default browser
Desktop d=Desktop.getDesktop();
d.browse(new URI("http://www.example.com"));
Note : Due to security reasons I used dummy URLs above.