开发者

Passing input hidden params through urllib2 POST request

开发者 https://www.devze.com 2022-12-15 02:13 出处:网络
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 valu

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

精彩评论

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