views:

43

answers:

1

-edit- nevermind. I ran the code again and it appears i cant log into that first site anymore. It must have been a weird cache issue or something. Maybe i overlooked something. WebClient seems to ignore cookies so logging onto a site shouldnt work.

I figured out how to login to websites using WebClient. On the first website i tried i could login and the following pages would have my login data. On another site this was no the case and i had to do this http://couldbedone.blogspot.com/2007/08/webclient-handling-cookies.html

What is the rule about cookies in webclient and why does this site work only with the alternative webclient class?

+1  A: 

The WebClient completely ignores cookies.

If there is a website which can be logged in to with a normal WebClient, it must be using something other than a cookie. (And it probably has a security hole)

SLaks
a security hole? I dont think so. Using Tamper Data i see the server returning a uid, tid and a httponly sid all with 64bits length. The WebClient code calls the login then several pages. I dont think it is ignoring cookies.
acidzombie24
Run Fiddler and see exactly what's going on.
SLaks
You right. It appears i cant log into the site anymore. Maybe there was some caching going on or something else i overlooked.
acidzombie24