I am trying to POST data into website to make a login into the site using Jsoup , but its not working ?
I am trying the code
Document docs = Jsoup.connect("http://some.com/login")
.data("cmd", "login","username", "xxxx","password", "yyyyy")
.referrer("http://some.com/login/").post();
here it is giving normal page of login in pagesource
i have also tried the code
Document docs = (Document) Jsoup.connect("http://some.com/login")
.data("cmd", "login","username", "xxxx","password", "yyyyy")
.referrer("http://some.com/login/").method(Method.POST).execute().parse();
here also it is giving normal page of login again in pagesource.
Any suggestions regarding the same would be highly appreciated !!
Thanks....