开发者

java script with post method of httpclient

开发者 https://www.devze.com 2023-03-12 04:14 出处:网络
I am trying to login to yahoo.de with httpclient in java (I am crawling the site). To submit a form having username and password, I use 开发者_运维知识库Postmethod. I found that I have to pass some hi

I am trying to login to yahoo.de with httpclient in java (I am crawling the site). To submit a form having username and password, I use 开发者_运维知识库Postmethod. I found that I have to pass some hidden values (which are generated dynamically) along with username and password in post method. Does anybody know how do I do this ? How do I handle javascript with httpclient ? Any help would be appreciated !


I doubt HTTPClient would support java-script, you might have to find if Yahoo supports non-javascript login process in the page and grasp those fields to login through.

Otherwise use, yahoo's open-id API to authenticate the user. More information here: http://developer.yahoo.com/openid/

0

精彩评论

暂无评论...
验证码 换一张
取 消