[prev in list] [next in list] [prev in thread] [next in thread] 

List:       markus-dev
Subject:    Re: A question about cookies
From:       Severin Gehwolf <Severin.Gehwolf () utoronto ! ca>
Date:       2011-10-11 12:54:17
Message-ID: 1318337660.2326.3.camel () python ! jerboaa ! org
[Download RAW message or body]

On Tue, 2011-10-11 at 08:04 +0200, Nelle Varoquaux wrote:
> Out of curiosity, what is the use case for such a script ?

Load testing of MarkUs. Anyhow, I think I'll drop the idea and go with a
HTTP's basic authentication and MarkUs' REMOTE_USER support instead.
This should work better, since username/password is provided by each
request.

If you have thoughts on this, let me know.

Thanks,
Severin

> On 11 October 2011 05:33, Severin Gehwolf <Severin.Gehwolf@utoronto.ca>wrote:
> 
> > Hi,
> > 
> > I'm working on a script for doing automatic logins. I.e. get's the login
> > page, reads in the "Set-Cookie" header, and uses this in return for the
> > "Cookie" HTTP header for the post with login data.
> > 
> > Here is what I've noticed. In a regular browser the cookie looks
> > something like this (note it's length):
> > 
> > _markus_session=BAh7CSIQX2NzcmZfdG9rZW4iMXFCdFVYU3RZbmNvdS82UzBnK1NnVlZtUnkrd21MUG \
> > hRRXhKM3Nranh0UEE9Igx0aW1lb3V0VTogQWN0aXZlU3VwcG9ydDo6VGltZVdpdGhab25lWwh1OglUaW1l \
> > DWPlG8ClxYRlIh9FYXN0ZXJuIFRpbWUgKFVTICYgQ2FuYWRhKXU7Bg1X5RvApcWEZSIPc2Vzc2lvbl9pZC \
> > IlYjVkZjU5OWQxMTQzZTI5ZDQyYThkZDczMTYyYzAyOTgiCHVpZGkG--84b3aeb770deb36603957e068ec2e9c3a6958f47
> >  
> > Here is what the script sees (which is way shorter):
> > 
> > _markus_session=BAh7BjoPc2Vzc2lvbl9pZCIlOTczMjE4MTVlYjZjNmQ2NGYwNzZlYTc5MmJlMzNjNGM%3D--4a4b414d9731d87ad5e3dcb299a7cdafbe493651
> >  
> > Does anybody have thoughts on this? The problem is that the script does
> > not seem to persist sessions, due to this (i.e. I get redirected to the
> > login page).
> > 
> > Thanks,
> > Severin
> > 
> > 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic