Python requests - Persistent sessions and HTML sessionStorage -


i've been using python requests package , locustio package perform web performance testing. unfortunately running problem web application requires signature value submitted subsequent page requests after login.

the signature value held in session storage after login, there method within requests allow me retrieve value persistent session?

i have tried using requests.session.cookies not appear provide functionality require.

apologies if question format unacceptable.

additional:

vikas,

after logging web application value stored within session storage called app.signature value hexidecimal string updated every 2 secs. need extract current value in order further interaction web-app authorised.

currently code spawns session, navigates login page , posts relevant login payload. after point need able retrieve app.signature value local storage.

s = requests.session() s.get(host + '/login')  payload = "grant_type=password&username=test@testing.co.uk&password=opxxrvzxefeeyx5t2gbiwvvs9jibf6vg7exjbn5r9owkrfchmibov12r3ujhb6w4a0grdho_qpuavr4yrhtbavhjunvyfr1cni7qhuer6hh6-w1kugtinbgpa6fvlirijz_ex-oxz5lvm2yhbonydbu_5sgxixl5bucglw_3lqrv56mduevwf516m13-i8bb_dkgy_wwvk_cvwzz9tmvdde9n4_qt9zpikt0zcwcydgystfybctaqjxbpgbojnug"  s.post(host + "/token", data=payload) 

after point have tried using s.cookies doesn't appear access held within html5 session storage.


Comments

Popular posts from this blog

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -