Saturday, March 31, 2012

simulating browser cookie management

Hello,

I am trying to write a script for testing web
applications. It needs to be able to authenticate user
and manage state through cookies. Is it possible to
simulate cookie management like a browser? If so, how?

Thank you,

Martin KubaMartin,

Look at System.Net.CookieContainer.

--
John Saunders
Internet Engineer
john.saunders@.surfcontrol.com

"Martin Kuba" <martin@.loyalcare.com> wrote in message
news:038f01c35ad3$47ded110$a601280a@.phx.gbl...
> Hello,
> I am trying to write a script for testing web
> applications. It needs to be able to authenticate user
> and manage state through cookies. Is it possible to
> simulate cookie management like a browser? If so, how?
> Thank you,
> Martin Kuba
John,

Thanks for your response. Do you know where I could find
a real-world example of using this class? MSDN has only
description of the class members. It would help me get
up to speed faster. Thanks again.

Martin

>--Original Message--
>Martin,
>Look at System.Net.CookieContainer.
>--
>John Saunders
>Internet Engineer
>john.saunders@.surfcontrol.com
>
>"Martin Kuba" <martin@.loyalcare.com> wrote in message
>news:038f01c35ad3$47ded110$a601280a@.phx.gbl...
>> Hello,
>>
>> I am trying to write a script for testing web
>> applications. It needs to be able to authenticate user
>> and manage state through cookies. Is it possible to
>> simulate cookie management like a browser? If so, how?
>>
>> Thank you,
>>
>> Martin Kuba
>
>.
Martin,

The code I gave you _is_ a real-world example. That's' all there is to it!

Did you have more in mind?

--
John Saunders
Internet Engineer
john.saunders@.surfcontrol.com

"Martin Kuba" <martin@.loyalcare.com> wrote in message
news:039101c35ad6$5c75efc0$a501280a@.phx.gbl...
> John,
> Thanks for your response. Do you know where I could find
> a real-world example of using this class? MSDN has only
> description of the class members. It would help me get
> up to speed faster. Thanks again.
> Martin
>
> >--Original Message--
> >Martin,
> >Look at System.Net.CookieContainer.
> >--
> >John Saunders
> >Internet Engineer
> >john.saunders@.surfcontrol.com
> >"Martin Kuba" <martin@.loyalcare.com> wrote in message
> >news:038f01c35ad3$47ded110$a601280a@.phx.gbl...
> >> Hello,
> >>
> >> I am trying to write a script for testing web
> >> applications. It needs to be able to authenticate user
> >> and manage state through cookies. Is it possible to
> >> simulate cookie management like a browser? If so, how?
> >>
> >> Thank you,
> >>
> >> Martin Kuba
> >.

0 comments:

Post a Comment