Yes, it could use view state or session state, or cookies to track whether
you are logged in.
If it is view state or session state, then you can enter the information on
the login page and it will track you until your session ends.
If it is a cookie, then when you login you will have to capture the cookie
and send it in subsequent requests. You will also have to worry about the
expiration and/or the system rejecting or not using your cookie. In other
words, if you go directly to a URL and you are redirected to a login page,
your program will have to be smart enough to know which page it got and what
to do based on the page.
Also, what if they simply change the login and/or other pages? How will you
know if they changes a page, and for example added a new field between
username and password called favorite color to the form?
Hope this helps...
Frisky
"Zachary Burns" <za**********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I'm trying to scrape a page that requires me to login to it. I'm not sure
if it uses cookies or not to track if I'm logged in, could it be using
viewstate?
Anyway, can I do this using the HttpRequest and HttpResponse methods?
I didn't see anything on google groups about this that was of any help.
Does anybody have a C# snippet that might put me on the right path?
Zack