This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
Hi Guys, I need help in solving a problem.I need java program for Authenticated or passowrd protected URL execution. I ma using URL and URLConnection class but they are not at all helping to slove it. here the example: the link or host name ishttp://test2/dcs[ when u type this in browser it will prompt a windows for username and password after giving username and password it will give some console there u can create or add user details and submit to the server but all this happen using browser BUT I need a java progrmme where it reads user details from a text file and it need to send it to server] i made connection by URL urlobj=new URL["http://username assword@test2/dcs"] here I am sending my username and password but it sis giving I/O exception 401 authentication error. even if it is success I mean after getting connection i need to send send data like this. "http://test2/dcs?username=abc&usertype=emp&emailid=......... "like which is send it through web browser. So can any one help me in this one? Thanks alot guys