开发者

Passing input hidden params through urllib2 POST request

I need to make POST request to CAS SSO server login page, and CAS login page has few input hidden params which are dynamically populated through java. I don't know how to read these hidden param values from response 开发者_运维问答and pass in to CAS server. Without passing these hidden params I am not able to login.

Does any one how to read input hidden param values from urllib2 response? Thanks in advance!


I found the answer! We can use BeautifulSoup to parse html content and get the input hidden param values. And inturn we can pass these captured params in POST request.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜